- PostgreSQL
- 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 using mail
/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/
- User updates questions
/api/meetups/{meetup_id}/questions/{question_id}/
- First Create python virtual env
$ virtualenv -p python .venv
- Install Requirements
$ pip install -r requirements.txt
- Copy .env-example to .env and set config
$ copy .env-example .env
- Copy .env-example to .env and set config-In Ubuntu and Kali linux
$ cp .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 drf;
postgres=# GRANT ALL PRIVILEGES ON DATABASE drf TO django;
postgres=# \q
$ exit
- Run Server
$ python api/manage.py runserver