Skip to content

Konstantin-Ushakov/django-react-heroku-csrf

Repository files navigation

django-react-heroku-csrf

Django v4 + React + CSRF cookies + Deploy to heroku at https://django-react-heroku-csrf.herokuapp.com/ (from main branch)

Run project

You must have installed Django v4 Python v3.10 with pip and npm

  1. 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
  1. Install frontend dependencies:
npm install
  1. Run server:
python manage.py runserver