Skip to content

M9-Calibre/BD_API_Materials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

86 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

How to run the API

  • Make sure to install the requirements (this must only be done once) (you may create a virtual environment):
# in the API root (/API)
pip install -r requirements.txt
  • Turning on API
python3 manage.py runserver 0.0.0.0:8000
  • How to restart the db (needed when there are model changes)
rm -f db.sqlite3 
rm -r API_Materials/migrations/
python3 manage.py makemigrations API_Materials
python3 manage.py migrate
  • Creating a super-user (or a "staff" user)
python3 manage.py createsuperuser
# then follow the instructions

API Documentation can be found in /swagger or /redoc

It is also possible to run the project from the Pycharm GUI. Pycharm is free with a student licence.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published