How to Install the Theme
This guide will help you set up your development environment and run GatsbyCar on your computer. If you are new to web development, do not worry — every step is explained in detail.
What You Need Before Starting
Make sure you have:
- A computer running Windows, Mac, or Linux
- An internet connection
- About 30 minutes of free time
- The GatsbyCar source code folder (from Documentation 1)
Step 1: Install Node.js
Gatsby requires Node.js version 18 or higher. Node.js is a runtime that allows you to run JavaScript outside the browser.
Download Node.js:
- Open your browser and go to https://nodejs.org
- You will see two download buttons: LTS and Current
- Click the LTS button (LTS means Long Term Support — it is the most stable version)
- The installer will download automatically
Install Node.js:
- Open the downloaded installer file
- Follow the installation wizard
- Accept the license agreement
- Keep all default settings
- Click Install
- Wait for the installation to complete
- Click Finish
Verify the installation:
-
Open your terminal
- Windows: Press
Windows key, typecmd, press Enter - Mac: Press
Cmd + Space, typeterminal, press Enter - Linux: Press
Ctrl + Alt + T
- Windows: Press
-
Type the following command and press Enter:
node -vYou should see something like v18.17.0 or higher. If you see an error, Node.js is not installed correctly.
- Type the following command and press Enter:
npm -vYou should see something like 9.6.7 or higher. npm comes bundled with Node.js.
Step 2: Install VS Code
VS Code is a free code editor that makes editing your theme easy. You will use it to open the project folder and run terminal commands.
Download VS Code:
- Open your browser and go to https://code.visualstudio.com
- Click the Download button for your operating system
- The installer will download automatically
Install VS Code:
- Open the downloaded installer
- Follow the installation wizard
- Accept the license agreement
- Keep all default settings
- Click Install
- Wait for the installation to complete
- Click Finish
Step 3: Open the Project Folder in VS Code
- Open VS Code
- Click File in the top menu
- Click Open Folder
- Navigate to the folder where you extracted GatsbyCar
- Select the folder and click Select Folder
The folder will open in VS Code. On the left side, you will see the file structure:
src/— source codecontent/— content filesstatic/— static filespackage.json— dependenciesgatsby-config.js— configuration- and other files
Step 4: Open the Terminal in VS Code
VS Code has a built-in terminal. This is where you will run commands.
- In VS Code, click Terminal in the top menu
- Click New Terminal
- A terminal panel will open at the bottom of VS Code
You can also use a keyboard shortcut:
- Windows / Linux:
Ctrl + backtick - Mac:
Cmd + backtick
The backtick key is usually located below the Escape key.
Step 5: Install Dependencies
Now you need to install all the packages that GatsbyCar requires.
In the terminal, type:
npm installPress Enter. This will download all required packages from the npm registry.
You will see a progress bar. The installation may take 2 to 5 minutes depending on your internet speed. Wait until it finishes.
When complete, you will see a message like:
added 1547 packages in 3mIf you see errors, check the Common Issues section below.
Step 6: Start the Development Server
After the installation completes, type:
npm startPress Enter. Gatsby will start the development server.
You will see output like:
success open and validate gatsby-configs - 0.054s
success load plugins - 1.196s
success onPreInit - 0.024s
success initialize cache - 0.138s
success createSchemaCustomization - 0.013s
success source and transform nodes - 0.654s
success building schema - 0.415s
success createPages - 0.112s
You can now view gatsbycar in the browser.
http://localhost:8000/The line http://localhost:8000/ is your local website address. localhost means your own computer.
Step 7: View Your Website
- Open your browser
- Type
http://localhost:8000in the address bar - Press Enter
You will see the GatsbyCar theme running on your computer. This is your live preview. Any change you make to the code will refresh automatically.
Step 8: Stop the Development Server
When you are done working, go back to the terminal in VS Code and press:
Ctrl + CThis stops the development server. You can restart it anytime by typing npm start again.
Common Issues and Solutions
Issue: "node: command not found" or "npm: command not found"
This means Node.js is not installed or not added to your system PATH.
Solution:
- Reinstall Node.js from https://nodejs.org
- During installation, make sure "Add to PATH" is checked
- Restart your computer
- Try again
Issue: "npm install" fails with permission errors
On Mac or Linux, you may need to run with elevated permissions.
Solution:
sudo npm installOn Windows, run VS Code as Administrator.
Issue: "npm install" fails with network errors
Your internet connection may be unstable.
Solution:
- Check your internet connection
- Try again
- If it keeps failing, use a different network
Issue: Port 8000 is already in use
Another application is using port 8000.
Solution:
npm start -- --port 8001Then open http://localhost:8001 instead.
Issue: "gatsby: command not found"
Gatsby CLI is not installed globally.
Solution: You do not need it. Use npm start instead, which calls Gatsby locally.
Issue: Changes don't appear in browser
Solution:
- Refresh the browser
- Check the terminal for errors
- Restart the development server with
Ctrl + Cthennpm start
What Is Happening Behind the Scenes
When you run npm start, Gatsby does the following:
- Reads all content files (JSON, Markdown)
- Builds a GraphQL schema from your data
- Creates pages for each car and blog post
- Compiles React components
- Starts a local web server on port 8000
- Watches for file changes and rebuilds automatically
This is called development mode. When you are ready to publish, you will run npm run build to create the production version.
Next Step
Your theme is now running locally. Proceed to the next documentation:
Initial Configuration
Need Help?
If you get stuck, contact us:
- Email: creativebydre@gmail.com
- Custom project: https://www.fiverr.com/creativitas/create-your-custom-website-and-app
RentCar