- Database - SQLite
- Web Framework - Django
- Programming language - Python
- API Documentation - Drf Yasg
Steps
-
Django Environment Setup
virtualenv -p python3 env_name source env_name/bin/activate pip install -r requirements.txt
-
Run Server
python manage.py migrate # to migrate all the migrations python manage.py runserver # to run the server The server will start at localhost:8000
-
Setup OAuth
Open the following Url and Register a new OAuth Application
localhost:8000/o/applications/register
Enter Application name and Choose Client type as
Confidential
and Authorization grant type asResource owner password-based
Copy the client id, client secret and Save the application
-
API Docs
API documentation can be accessed at
localhost:8000/docs/
-
Unit tests
python manage.py test
- User
- Category
- Knowledge Base
- Document File