Follow these steps to set up and run the server on your local machine:
- Clone the Repository First, clone the repository to your local machine using the following command:
- Navigate to the Project Directory Change to the directory where the project is located:
- Install Dependencies Make sure you have Node.js and npm installed. If not, download and install Node.js from the official website. Once Node.js and npm are installed, run the following command to install the required dependencies:
express: A web framework for Node.js jsonwebtoken: A library to sign and verify JWT tokens cors: Middleware to enable Cross-Origin Resource Sharing body-parser: Middleware to parse incoming request bodies
- Run the Server Once the dependencies are installed, you can start the server by running:
By default, the server will run on port 5000. You should see a message like: Server running on port 5000
- Clone the Repository First, clone the repository to your local machine using the following command:
- Navigate to the Frontend Project Directory Change to the directory where the React app is located
- Install Dependencies Make sure you have Node.js and npm installed. If not, download and install Node.js from the official website. Once Node.js and npm are installed, run the following command to install the required dependencies for the React app:
- Run the React App Once the dependencies are installed and the API URL is set, you can start the React development server by running:
The React app will run on http://localhost:3000 by default. You should see your React app running in the browser.