/AutoGo

Car rental API with payment system integrated.

Primary LanguagePython

AutoGO 🚘

Setup 🔧

  • clone repo
git clone https://github.com/stenwire/AutoGo.git
  • Go into the folder
cd :\\path\\to\\AutoGO
  • install pipenv
pip install pipenv
  • activate pipenv
pipenv shell
  • install dependencies
pipenv install
  • Create a copy of .env.example and rename to .env then fill in the values
  • find the treblle keys on the treblle dashboard
  • Create admin user with:

whilst in project directory

python manage.py shell

>>> from authme.models import CustomUser

>>> CustomUser.objects.create_user(email="youremail@example.com",username="johnDoe707", password="strongpassword", is_staff=True, is_superuser=True)

Testing API

Postman Docs: click here📬

Swagger Docs:

  • use this to generate datetime object to fill into respective fields
from datetime import datetime

t4 = datetime(year = 2018, month = 7, day = 12, hour = 7, minute = 9, second = 33)
t5 = datetime(year = 2018, month = 7, day = 14, hour = 5, minute = 55, second = 13)
t6 = t5 - t4


print("t4 =", t4)
print("t5 =", t5)
print("t6 =", t6)