Skip to content

Latest commit

 

History

History
20 lines (16 loc) · 1020 Bytes

README.md

File metadata and controls

20 lines (16 loc) · 1020 Bytes

django-react-webpack

Multipage web application using django, react and webpack

Setup

  • CD to the location where manage.py is located.
  • Create a virtual environment using python3: python -m venv venv.
  • Activate virtual environment: source venv/bin/activate
  • Install requirements: pip install -r requirements.txt.
  • CD to frontend directory cd frontend
  • Install node packages: npm install

Run

  • Open first terminal where manage.py is located and run python manage.py runserver, to run django server.
  • Open second terminal inside frontend directory cd frontend
  • For development purpose run npm run watch.
  • For production run: npm run build.

[Optional]: Create the project from scratch

https://tech.raturi.in/multi-page-web-application-using-django-react-and-webpack/