Run docker-compose run django python3 manage.py createsuperuser
Run docker-compose build
Run docker-compsoe run django python3 manage.py makemigrations
Run docker-compsoe run django python3 manage.py migrate
Run docker-compsoe run django python3 manage.py test
Run docker-compose up
Run docker-compsoe run django python3 manage.py runserver 0.0.0.0:8000
Go to http://localhost:8000/admin, and login with the admin credentials.
Go to https://localhost:8000/, and login with a teacher credentials
- All Teachers:
GET:
http://localhost:8000/api/teachers/` - Teacher By ID:
GET:
http://localhost:8000/api/teachers/:id/`
- All Students:
GET:
http://localhost:8000/api/students/` - Student by ID:
GET:
http://localhost:8000/api/student/?id=:id` - All Student by Teacher ID:
GET:
http://localhost:8000/api/students/?id=:id&type=teacher`
Attach field name to query string.
ex: GET:
http://localhost:8000/api/teachers/:id/?sort=first_name`
ex: GET:
http://localhost:8000/api/students/?sort=last_name`
Attach search text to query string.
ex: GET:
http://localhost:8000/api/students/?sort=last_name&search=ch`