Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.49 KB

README.md

File metadata and controls

61 lines (39 loc) · 1.49 KB

yuthanceAPI

Build Status Coverage Status

Yuthance backend API

Features

User accounts

  • A user should be able to create an account.
  • A user should be able to log in to their account.

Cart

  • A user should be able to add an item to cart.

Transactions

  • A user should be able to make a payment

Installation

  • Clone this repository and cd into the folder. git clone https://github.com/SAWM55/yuthancebackend.git cd yuthancebackend

  • Create a virtual environment python3 -m venv env

  • Set the environment variables mv .env.example .env source .env

  • Install dependencies pip install -r requirements.txt

  • Perform migrations python manage.py migrate

  • Create superuser python manage.py createsuperuser --email [email protected] --username admin

  • Run the app python manage.py runserver

  • Testing pytest

Yuthance application endpoints

Endpoint Functionality HTTP method
/users/?format=json Register a user POST
/users/<int:id> view, edit, delete a user GET, PATCH, DELETE
/auth/login Login a user  POST

Authors

David Macharia @Dave-mash