โ
STEP-BY-STEP: How to Run Your Exported React (Hostinger Horizons) Code on Your PC or Server
๐ ๏ธ 1) Install Node.js on your device
Download and install Node.js LTS from:
https://nodejs.org
After installing, check if it worked (Optional):
- # Run the commands in CMD or Terminal
node -v
npm -v
โ
You should see version numbers.
๐ 2) Open CMD or Terminal
- On Windows: Press Win + R โ type cmd โ Enter
- On Mac: Use Spotlight and search for Terminal
๐ 3) Navigate to Your Project Folder
Example for Windows:
cd "C:\Users\YourName\Downloads\exported-react-site"
Example for Mac/Linux:
cd /Users/YourName/Downloads/exported-react-site
๐ก TIP: Type cd then drag and drop your folder into the terminal.
๐ฆ 4) Install Dependencies
npm install
This will install everything your React project needs.
๐ 5) Start the Project
npm start
If that doesn't work, try:
npm run start
npm run dev
npm run vite
๐ It should open automatically in your browser at:
http://localhost:3000
๐ DONE!
Your exported React site is now running locally!