Installation Guide
Follow these steps to set up and start using the theme.
Prerequisites
Before you begin, ensure your system meets the following requirements.
Install Node.js
Node.js lets you run JavaScript code on your computer. The version you need depends on your edition:
| Edition | Node.js version |
|---|---|
| Astro | 22.12.0 or later |
| Tina | 22 (22.12.0 or later) or 24. Tina’s command line tool supports only those two versions |
| Sanity | 22.23.4 or later |
Here’s how to install it based on your operating system:
Follow these steps to install Node.js on Windows:
- Download the latest LTS version of Node.js from the official website: Node.js Downloads
- Run the installer after it’s downloaded, and follow the on-screen instructions. The installer will guide you through the process.
- After installation, open the Command Prompt (search for “cmd” in the Start menu) and verify the installation by typing the following command and pressing Enter:
node -vIf Node.js was installed correctly, you’ll see the version number. Check it against the table above.
Here’s how to install Node.js on macOS:
- First, make sure you have Homebrew installed. Homebrew is a tool that makes installing software easy. If you don’t have it, follow this guide to install it.
- Open your Terminal (you can find it in Applications > Utilities) and run this command to install Node.js:
brew install node- After installation, verify Node.js by typing the following command:
node -vIf everything is set up, the terminal will display the installed version of Node.js. Check it against the table above. For the Tina edition, Homebrew may give you a newer version than 24, so use the installer below if it does.
To install Node.js on Linux, follow these steps:
- Open your Terminal and update your package list:
sudo apt update- Install Node.js using your package manager:
sudo apt install nodejs- Optionally, install npm (Node.js package manager) by running:
sudo apt install npm- Verify the installation by typing:
node -vThe installed version of Node.js will be displayed if everything worked correctly. Your package manager may give you an older version than the table above asks for. If it does, use the official guide below.
💡 Need help? Check out the official Node.js installation guide.
Setting Up Upstart
Once Node.js is installed, follow these steps to set up Upstart. The theme uses npm, which comes with Node.js.
Install Dependencies
Navigate to your project directory (the main theme folder) and run:
npm ciThis installs the exact dependency versions from package-lock.json. In the Sanity edition, this takes about 1 GB.
Start the Development Server
To start the local development server and view your site on your computer, run:
npm run dev🔹 Your site will be available at http://localhost:4321.
This generates the settings file from src/config/config.toml, watches that file for changes, and starts the site. What else happens depends on your edition:
- Astro: edit the files in your code editor. To use another port, run
npm run dev -- --port 4322. - Tina: it also starts the editor. Open http://localhost:4321/admin/ and click Enter Edit Mode. You need no account and no password. To use another port, set
PORTin.env. See Tina. - Sanity: the site runs with the bundled demo content, with no account. To edit it, run
npm run setupto connect your own Sanity project, thennpm run dev:all, and open the Studio at http://localhost:3333. To use another port for the site, setSITE_PORTin.env. See Sanity.
Create a Production Build
To generate an optimized production build of your site, run the following command in your project root:
npm run buildThis will compile your project, optimize assets, and prepare everything for deployment. The output will be located in the dist/ folder.
Preview the Production Build
To see how your site will look in the final production version, run:
npm run previewThis builds the site and serves dist/ on your computer, so you can check it before it goes live.
Other Useful Scripts
Run each one as npm run <script>.
| Script | What it does |
|---|---|
astro-check | Checks code and content. Run it after you change code or content schemas |
generate-favicons | Makes the favicons from your logo. See Site Identity & Logo |
generate-multilingual-content | Adds a language. See Internationalization |
remove-multilingual | Removes every language except your default one. Read Internationalization first |
toml:watch | Generates the settings file from config.toml once. dev and build do this for you |
Only in the Tina edition:
| Script | What it does |
|---|---|
tina:generate | Rebuilds the editor’s forms. Run it after you add a section, a field, or a language |
tina:audit | Tells you if a save in the editor would lose anything. Run it after you edit files by hand |
setup:tina | Walks you through online editing with your own Tina Cloud project. It’s optional |
Only in the Sanity edition:
| Script | What it does |
|---|---|
setup | Logs you in, creates your project, writes .env, and uploads the demo content |
dev:all | Starts the website and the Studio together |
import-seed | Uploads the demo content again. It replaces documents with the same IDs. Add -- --missing to keep the documents you already have |
studio:deploy | Puts the Studio online |
build:preview | Builds the preview server for draft preview online |
start:preview | Starts the preview server |
🚀 You’re all set! Now you can start customizing Upstart to fit your needs. 🎨