Client Setup and Running
To set up and run the client, follow these steps carefully:
Ensure prerequisites are installed
You need to have Node.js installed.
Download and install from: https://nodejs.org/
Verify the installation:
node -v npm -v
Note
npm comes bundled with Node.js. If you get an error, ensure Node.js was installed correctly.
Create `.env` file in the client folder
Create a .env file inside the
client
directory with the following content:# address of our server (back-end) VITE_SERVER_HOST_ADDRESS=http://localhost:8000/ VITE_STATUS_THRESHOLD=1000 VITE_CLIENT_HOST=localhost VITE_CLIENT_PORT=5173 CLIENT_URL=http://localhost:5173
Install the dependencies
Make sure you are in the
client
folder, then run:cd ./client npm install
Run the client
To start the development server, run:
npm run dev
Note
Everything should be set up and running now!