- User Signup
/api/auth/signup/
- User Login
/api/auth/login/
- User Logout
/api/auth/logout/
- User Account Activation
api/auth/activate/
- User Account Activation Resend Email
/api/auth/resend/
- User Password Reset Eamil
/api/auth/reset_password/
- User Password Confirmation
/api/auth/reset_password_confirm/
- User Set Password
/api/auth/change_password/
- User Set Email
/api/auth/change_email/
- Api Docs
/api/
- Api Schema
/api/schema/
- First Create python virtual env
$ virtualenv -p python .venv
- Install Requirements
$ pip install -r api/requiremts.txt
- Copy .env-example to .env and set config
$ copy .env-example .env
- Create postgres database
$ sudo su postgres
$ psql
postgres=# CREATE USER django WITH PASSWORD 'password';
postgres=# ALTER ROLE django SET client_encoding TO 'utf8';
postgres=# ALTER ROLE django SET default_transaction_isolation TO 'read committed';
postgres=# ALTER ROLE django SET timezone TO 'UTC';
postgres=# CREATE DATABASE ireporter_db;
postgres=# GRANT ALL PRIVILEGES ON DATABASE ireporter_db TO django;
postgres=# \q
$ exit
- Run Server
$ python api/manage.py runserver