Skip to content

A Python Django backend and ReactJS frontend application.

Notifications You must be signed in to change notification settings

alegian/djangoapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

About

A Python Django backend and ReactJS frontend application.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published