Quick Start Guide
Get FreshJuice DEV up and running in just a few minutes. This guide will walk you through the essential steps to start developing with the theme.This quick start assumes you already have Node.js and the HubSpot CLI installed. If not, see the Installation guide for detailed prerequisites.
Installation
Start Development
Once installed, you can start developing with hot-reload enabled:This command runs Tailwind CSS, esbuild, and HubSpot CLI in parallel with file watching, automatic rebuild, and live upload to HubSpot.
What Happens When You Run npm run start
The start command runs three processes in parallel:
- Tailwind CSS Watcher – Monitors CSS changes and rebuilds
/theme/css/tailwind.css - JavaScript Bundler – Watches and bundles JavaScript files with esbuild
- HubSpot File Watcher – Automatically uploads changes to your HubSpot portal
Create Your First Page
Now that your development environment is running, let’s create a simple page:Choose a template
Navigate to your HubSpot portal and go to:Marketing → Website → Website PagesClick Create and choose Website page.
Select FreshJuice DEV theme
In the template selector, choose FreshJuice DEV as your theme.You can start with any of the available templates:
home.html– Homepage templateabout.html– About page templatelanding-page.html– Landing page template- Or create a blank page
Add modules to your page
Use the drag-and-drop editor to add modules from the FreshJuice DEV library:
- Hero Section – For page headers
- Card Module – For content blocks
- Accordion – For FAQs
- Button – For CTAs
Customize with Tailwind classes
If you want to customize styles, you can edit the module files in:All Tailwind CSS utility classes are available to use.
Available Commands
Here are the most commonly used npm scripts:Command Breakdown
| Command | Description |
|---|---|
npm run start | Runs Tailwind, esbuild, and HubSpot CLI with file watching |
npm run build | Builds Tailwind CSS and JavaScript for production |
npm run upload:hubspot | Uploads the theme to HubSpot via CLI |
npm run watch:hubspot | Watches theme folder and auto-uploads changes |
npm run watch:tailwind | Watches CSS changes and rebuilds Tailwind |
npm run watch:js | Watches JavaScript changes and rebuilds with esbuild |
npm run build:tailwind | Builds Tailwind CSS (production mode) |
npm run build:js | Bundles JavaScript with esbuild |
Project Structure Overview
Understanding where files live is key to working efficiently:Next Steps
Now that you’re up and running, explore more:Installation Details
Learn about prerequisites, detailed setup, and verification steps.
Theme Configuration
Customize theme settings, colors, and behavior.
Module Library
Explore all available modules and how to use them.
Customization
Learn how to customize styles and create your own modules.