A Python Django backend and ReactJS frontend application.
Make sure your system has git
, python3
and npm
installed.
Make a python virtual environment:
python3 -m venv djangoapp
cd djangoapp
source bin/activate
Clone this repo:
git clone https://github.com/Alegiannx/djangoapp.git
Rename cloned project to 'src':
mv djangoapp src
Install the python requirements
cd src
pip install -r requirements.txt
python manage.py migrate
Create a .env file
touch .env
And add the secret key to its contents
export SECRET_KEY=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Install the npm packages needed:
cd frontend
npm install
Run the starting scripts:
- In
frontend
folder, run
npm run dev
- In
src
folder with active venv, run
python manage.py runserver
Now just visit http://localhost:8000/