-
Notifications
You must be signed in to change notification settings - Fork 1
Local Development Environment Setup
Chenyang Li (Sean) edited this page Nov 28, 2024
·
1 revision
- Clone the repository
git clone https://github.com/uocli/RecipeMate.git- Create a virtual environment
cd RecipeMate
python3 -m venv venv- Install the Python dependencies
pip install -r requirements.txt- Install the Node.js dependencies (Make sure you have Node.js installed)
cd frontend
npm install- Build the frontend
cd frontend #ignore this if you are already in the frontend directory
npm run buildNote: If npm run watch is working, you can try that out to detect every change within the frontend/src folder. Otherwise, you have to run npm run build every time you make a change in the frontend/src folder.
- Run the Django server
cd ../backend # or cd backend if you are in the root directory
python manage.py runserverIf all goes well, you can access the application at http://127.0.0.1:8000/ locally.