EUGINELETHAL / Order-Api

Order-Api is a simple REST API used to upload customers orders built with Django Rest Framework..This project was for leveling up on Test-driven development and CI/CD https://backend-challenge5.herokuapp.com/oidc/authenticate/

Home Page:https://backend-challenge5.herokuapp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Coverage Status

ORDER-API

..Order-Api is a simple REST API used to upload customers orders.

..User Stories

Users authenticates via OAUTH2 and OpenidCOnnect(GOogleOAuth 2.0 )
Customer creates order
Customers gets message after order created sucessfully(Asynchronous Task)

Tools and Technologies

  1. Django
  2. DjangoRest
  3. Travis(CI/CD)
  4. Heroku-Deployment
  5. AfricaisTalking-(SMSGATEWAY)
  6. Coverage
  7. Celery
  8. Redis
  9. Pytest
  10. Docker
  11. Docker-Compose

API ENDPOINTS

Run in Postman

Question Endpoints.

API Endpoint Description Methods
/oidc/authenticate/ Authentication GET
/api/v1/customer create customer POST
/api/v1/order Get all orders GET
/api/v1/order Customer posts order POST

Getting Started

To get started: Git clone the repository using https://github.com/EUGINELETHAL/Backend-challenge For the API to run smoothly you will need the following:

1. Python 3.6 or higher installed.
2. Pip3
3. Pipenv or virtualenv installed.

Installing

Local Development Guide.

  1. Git clone the repository using
  2. Through your terminal, navigate to the location with the cloned repository.
  3. Open the cloned repo folder using your terminal.
  4. You're currently on the main branch.

Running the tests

pytest

Style Guide.

PEP 8

Deployment

Heroku

Built With

  • Django and Django Rest Framework

Authors

  • Ochung Eugine.

About

Order-Api is a simple REST API used to upload customers orders built with Django Rest Framework..This project was for leveling up on Test-driven development and CI/CD https://backend-challenge5.herokuapp.com/oidc/authenticate/

https://backend-challenge5.herokuapp.com/


Languages

Language:JavaScript 56.7%Language:CSS 37.4%Language:Python 4.9%Language:HTML 0.8%Language:Dockerfile 0.1%Language:Procfile 0.0%