Django v4 + React + CSRF cookies + Deploy to heroku at https://django-react-heroku-csrf.herokuapp.com/ (from main branch)
You must have installed Django v4 Python v3.10 with pip and npm
- Install backend dependencies. We recommend to create environment (Windows):
python -m venv env
env/Scripts/activate
Now you are into the virtual environment. Then run installation:
pip install -r requirements.txt
- Install frontend dependencies:
npm install
- Run server:
python manage.py runserver