-
Open the terminal and navigate to the MedAdvisor folder.
-
Create a virtual environment:
python -m venv env # For Python 3.x
-
Activate the virtual environment:
- For Linux/macOS:
source env/bin/activate
- For Windows:
.\env\Scripts\activate
- For Linux/macOS:
-
Install dependencies from
requirements.txt
:pip install -r requirements.txt # for windows pip install -r requirements_os.txt # for linux/macos
-
Navigate to the backend directory:
cd backend
-
Run the Django development server:
python manage.py makemigrations python manage.py migrate python manage.py runserver
- For unit testing:
python manage.py test
- For unit testing:
-
Open a new terminal in the same directory (MedAdvisor).
-
Navigate to the frontend directory:
cd frontend
-
Serve/Start the React app:
serve -s build
-
To Run Develpoment the React app:
npm start
if somehow react app doest start ( error on npm start or on serve -s build )
- run these commands ( iff error shows on 9th or 10th step )
rm -rf node_modules npm install npm start