Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 991 Bytes

README.md

File metadata and controls

60 lines (49 loc) · 991 Bytes

django-app

Description

A Python Django backend and ReactJS frontend application.

Requirements

Make sure your system has git, python3 and npm installed.

Installation

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/