Django Rest API for Muve Backend
- A Terminal or a CMD
- Python 3.7 or above installed.
Open a Terminal or CMD, and clone the repository.
git clone https://github.com/jayanwana/AppBackend.git
Enter the root directory.
cd AppBackend
Install requirements (use pip3 if pip doesn't work)
pip install -r requirements.txt
Run migrations to create Database and models
(Replace "python" with "py" or "python3" if an error occurs)
python manage.py makemigrations
python manage.py migrate
Create a super user (User with all permissions)
(Replace "python" with "py" or "python3" if an error occurs)
python manage.py createsuperuser
Enter the relevant information (email and password) when prompted
To run the server on localhost use the following command (Replace "python" with "py" or "python3" if an error occurs)
python manage.py runserver
After running the server, open the browser and go to
http://127.0.0.1:8000/
to view the Swagger UI and API endpoints.
Note: Only endpoints which don't require Authorization would be visible initially.
Login with the details used to create the super user, to generate your authentication token.
Add token to authorization header to view full list of API endpoints.
- Django - The web framework used
- Django-Rest-Framework - Rest API Framework
- Django-Rest-Swagger - Used to generate swagger documentation
- JWT Authentication - Authentication Token Generator
- Anwana John - jayanwana
See also the list of contributors who participated in this project.