Run the site locally
Install and start the site with Node.js and Yarn.
Before you start: install Node.js 22 or newer. Yarn comes with Node.js through Corepack. There is no .env file to create.
Start the development server
Install and start
Open a terminal in the
juicyfolder.corepack enableis needed once per computer; it makesyarnuse the version the template pins.Terminalinjuicycorepack enable yarn install yarn devExpected result: localhost:3030Local opens the page. It reloads by itself when you change a file.
Having trouble?
A port is already in use?
If yarn dev stops with EADDRINUSE: address already in use, another program uses port 3030. Stop it, or start on another port with yarn dev -p 3041 and open localhost:3041Local.
Production build
Build once, then serve the build. It is what a server runs, and it is faster than the development server.
juicyyarn build
yarn startIt is served on localhost:3030Local too. On another port: yarn start -p 3041. Run yarn build again after every change.
Scripts
| Command | What it does |
|---|---|
yarn dev | Development server on port 3030 |
yarn build | Production build |
yarn start | Serves the production build on port 3030 |
yarn lint | Checks the code with ESLint |
yarn typecheck | Checks the TypeScript types without building |