Run the site without Docker
Install and start the site with Node.js and Yarn, in development or as a production build.
Before you start: install Node.js 22 or newer. No database and no global packages are needed.
View requirementsOpen a terminal in the landing-page-template-1 folder, the one you get when you unzip the download.
Start the dev server
Install and start
corepack enablemakesyarnuse the Yarn 4 version the project pins; you run it once per computer.yarn installdownloads the dependencies, andyarn devstarts the site.Terminalinlanding-page-template-1corepack enable yarn install yarn devExpected result: localhost:3030Local opens the page. A change to a file under
Having trouble?src/ormessages/shows in the browser without a restart.
A port is already in use?
If yarn dev stops with EADDRINUSE: address already in use :::3030, another program uses port 3030. Stop it, or start on another port with yarn dev -p 3041 and open localhost:3041Local.
Press Ctrl+C in the terminal to stop the dev server.
Optional settings
The site runs with no configuration. To set your site's public address or a contact form API, copy .env.example to .env.local and edit it:
landing-page-template-1cp .env.example .env.localIn PowerShell:
landing-page-template-1Copy-Item .env.example .env.localRestart yarn dev after you change it.
Production build
Build the site once, then serve the build:
landing-page-template-1yarn build
yarn startyarn start serves the build on localhost:3030Local. On another port: yarn start -p 3041.
yarn build writes the values in .env.local into the build, so run it again after you change one.
Scripts
| Script | What it does |
|---|---|
yarn dev | Starts the dev server on port 3030 |
yarn build | Makes the production build |
yarn start | Serves the production build on port 3030 |
yarn lint | Checks the code with ESLint |
yarn typecheck | Checks the types with TypeScript |