Skip to content

Marrowsed/To-Do_DRF_APP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Postgres Python Django PyCharm React

To-Do Django Rest APP

🪧 Vitrine.Dev
✨ Nome To-Do App
🏷️ Tecnologias python, django rest, postgresql, react

A To-Do APP made with Django REST and React as Front-End !

Make your lists and never lose your goals again !

Django Rest Framework

Install

Python latest

Dependencies

pip install -r requirements.txt

Config

  1. Create an `.env` file in the same folder where `migrate.py` is.
  2. In your terminal with venv, execute `python -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())'` generating a new secret key
  3. Insert the new secret key in `.env` file like this: `SECRET_KEY = oahsdodjifodjfodjfpadjpajsdpojsd` .
  4. Insert the database URL in the `.env` file like this: `DATABASE_URL = your_db://your_db:password@localhost/my_db`.
  5. Run `python manage.py migrate` and create the tables

Running

python manage.py runserver

Server is running in http://127.0.0.1:8000/, access your browser !