Template for running both django and react.
- Steps for deploying to Heroku are not included. Refer to Reference for deployment steps.
- In root directory, create a virtual environment
python -m venv venv
- Activate virtual environment
# for Mac OS / Linux source venv/Scripts/activate :: for Windows venv\Scripts\activate
- Install python pachages
pip install -r requirements.txt
- Build server. This will create files in the build folder.
python manage.py collectstatic
- Install node packages
yarn install
- Build react. This will create files also in the build folder.
yarn build
- Run server
python manage.py runserver