Before running the project, make sure you have the following installed:
- Node.js (version 16 or higher recommended)
- npm (comes with Node.js) or yarn
To check if you have Node.js installed, run:
node --version
npm --versionOpen your terminal/command prompt and navigate to the project folder:
cd SkysmartMega-mainInstall all required packages and dependencies:
npm installor
npm iThis will download and install all the dependencies listed in package.json. This may take a few minutes.
Run the development server:
npm run devThe server will start and you should see output indicating:
- The local URL (typically
http://localhost:3000) - The network URL (for accessing from other devices on your network)
The development server should automatically open your default browser to http://localhost:3000. If it doesn't, manually navigate to:
http://localhost:3000
To create a production build:
npm run buildThis creates an optimized build in the build directory.
To preview the production build locally:
npm run previewIf port 3000 is already in use, Vite will automatically try the next available port (3001, 3002, etc.). Check the terminal output for the actual port number.
If you encounter issues installing dependencies:
- Delete the
node_modulesfolder (if it exists) - Delete
package-lock.json(if it exists) - Run
npm installagain
- Make sure you're in the correct directory (
SkysmartMega-main) - Ensure all dependencies are installed (
npm install) - Check that Node.js and npm are properly installed
To stop the development server, press Ctrl + C in the terminal where it's running.