Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 834 Bytes

README.md

File metadata and controls

40 lines (30 loc) · 834 Bytes

django_react_prototype

Largely based on this tutorial

page-screenshot

Setup

Commands presume you're at the root of the repo.

Prerequisites:

  • python
  • pip
  • node
  • npm
  • MySQL

Setup virtual environment:

python -m venv .venv

Install necessary packages:

Backend packages:
pip install django djangorestframework django-cors-headers

Frontend packages:

Note: try to use react-bootstrap [email protected] instead of reactstrap in the real project

cd students-fe
npm install bootstrap reactstrap axios --save

Creating a local database:

MySql
CREATE DATABASE testdb

How to run

Start backend:
cd ..
python manage.py runserver

Start frontend:
cd students-fe
npm start