Activating Backend and Frontend Here is the updated markdown content:
To activate the backend and frontend of the project, follow the steps below:
-
Install Git on your system. You can download it from the official website or use a package manager like Homebrew (for macOS) or apt-get (for Ubuntu).
-
Clone the repository using the following command:
git clone https://github.com/Rtarun3606k/SIH_Prototype_public.git
-
Navigate to the backend directory:
cd prototype/backend
-
Install virtualenv and activate the environment. Virtualenv allows you to create isolated Python environments for your projects. To install virtualenv, run the following command:
pip install virtualenv
Once installed, create a new virtual environment:
virtualenv env
Activate the environment:
- For Windows:
.\env\Scripts\activate
- For macOS/Linux:
source env/bin/activate
- For Windows:
-
Install the required dependencies. Make sure you are in the
backend
directory and the virtual environment is activated. Run the following command:pip install -r requirements.txt
This will install all the necessary Python packages specified in the
requirements.txt
file. -
Run the application. Ensure you are still in the
backend
directory and the virtual environment is active. Execute the following command:python wsgi.py
The frontend of the application is built with React. To activate the frontend, follow these steps:
- Open a terminal window.
- Navigate to the frontend directory using the command
cd prototype/frontend
. - Install the required dependencies by running
npm install
. - Start the frontend development server with the command
npm run dev
.
- Frontend Activation:
- Navigate to the frontend directory:
cd prototype/frontend
- Install dependencies:
npm install
- Start the frontend development server:
npm run dev
- Navigate to the frontend directory:
- Frontend Activation:
- Navigate to the frontend directory:
cd prototype/frontend
- Install dependencies:
npm install
- Start the frontend development server:
npm run dev
- Navigate to the frontend directory:
Remember to activate the backend before starting the frontend to ensure proper functionality.