Skip to content

noahbt/simple-django

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This repository is meant to dive into Django and set up a simple application. It will have a Django server and a React front end.

Setup

I followed this simple tutorial on DigitalOcean to get Django initially setup. You can see the commands below.

Initial Setup

mkdir simple-django
cd simple-django/
python3 -m venv venv
source venv/bin/activate
pip list
pip install django
django-admin --version
django-admin startproject backend .
cd backend
./manage.py startapp todo
./manage.py migrate
./manage.py createsuperuser
./manage.py runserver localhost:8000

Front-End

cd simple-django/
npx create-react-app frontend
cd frontend
npm start
npm install bootstrap
npm install reactstrap