Skip to content

Latest commit

 

History

History
76 lines (42 loc) · 1.43 KB

File metadata and controls

76 lines (42 loc) · 1.43 KB

Django Rest Api (token Based Authentication)

This is a simple Register, login and logout RestAPI. Feel free to comsume the APIs fo your personal project.

Author

Brian Kiiru Kimani

Installations

The following command installs all the application requirements

pip install -r requirements.txt

Setup

Run https://github.com/brayokenya/DjangoRestAPI.git

or download the zip file from github.

After extracting the files,

  1. Navigate to the project folder

cd name_of_folder

  1. Creating a virtual environment

virtualenv virtual.

  1. Activating the virtual environment

source virtual/bin/activate.

  1. Running the application

python3 manage.py runserver

  1. Running tests

Use Postman to run test

Technologies used

  • Python3
  • Django
  • DjangoRest
  • Swagger
  • PSQL

User Stories

  • As a user, I can register

  • As a user, I can log in.

  • As a user, I can log out.

MIT License © 2020 Brian Kiiru

Collaborate

To collaborate, reach me on kiirubrian21@gmail.com