default Swagger API document address: root address: eg http://localhost:8000
You can use pip to install all package yourself, the dependency list in pipfile, just ignore below
// install pipenv
$ pip install pipenv
//install dependency
$ pipenv install
$ python manage.py makemigrations
$ python manage.py migrate
//to start environement in console
$ pipenv shell
// run server
python manage.py runserver
//with port
python manage.py runserver 8080
- create a .env file under cz_3002_backend, not the folder contain pipfile
- add 2 line in it
- export EMAIL_HOST_USER=your_emal
- export EMAIL_HOST_PASSWORD=password //in terminal //in terminal
$ source .env
Add following to your http header after login
- Authorization: Bearer [access token]
access token expire after 5 minutes and require to use fresh to get new access toen
All the endpoint require access token except following:
- register
- verify email
- login
- password reset email
- password reset token check
- change new password