/drf_template

Primary LanguagePythonMIT LicenseMIT

drf_template

this is an API developed using drf,

local deployment

requirements

  • docker
  • Docker compose
  • a text editor
$ docker compose build
$ docker compose up
# run the migrations
$ docker compose run api  python manage.py migrate
# optional you can fill with dummy data using
$ docker compose run api python manage.py seed [app] --number=[int] # replace [app] whit area, expertise, user, mentor, avaliability and [int] with any number

now you can read the schema declaration in the http://localhost:8000/swagger/ address

to authenticate first you need to create a super user with django

docker compose run api python manage.py createsuperuser

and fill the data