Skip to content

iris-jen/Django-React-Todo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Django React Todo

Cool CRUD Example project from -> https://www.digitalocean.com/community/tutorials/build-a-to-do-application-using-django-and-react

thingey-under30

  • 'pipenv shell' will activate a vitrual enviroment from your working powershell directory

  • 'django-admin startproject backend' - creates the backend project -> cd backend

    • 'python manage.py startapp todo' - runing this from the backend folder created above will create the app 'todo'
    • 'python manage.py migrate' - runs migration
    • 'python manage.py runserver' - starts the server on http://localhost:8000
    • 'python manage.py makemigrations todo' - creates a migration file for the 'todo' model
    • 'python manage.py migrate todo' - applies the new model changes to the sqlite database
  • 'npx create-react-app frontend' creates new frontend project (do this from root) -> cd frontend