Code Monkey home page Code Monkey logo

pizza_delivery_api's Introduction

PIZZA DELIVERY API

This is a REST API for a Pizza delivery service built for learning FastAPI.

ROUTES TO IMPLEMENT

METHOD ROUTE FUNCTIONALITY ACCESS
POST /auth/signup/ Register new user All users
POST /auth/login/ Login user All users
POST /orders/ Place an order All users
PUT /orders/{id}/ Update an order All users
PATCH /orders/{id}/ Update order status Superuser
DELETE /orders/{id}/ Delete/Remove an order All users
GET /orders/ Get user's orders All users
GET /orders/all/ List all orders made Superuser
GET /orders/{id}/ Retrieve an order Superuser
GET /orders/my/{id}/ Get user's specific order
GET /docs/ View API documentation All users

How to run the Project

  • Install Postgreql
  • Install Python
  • Git clone the project with git clone https://github.com/MinnullinIlshat/pizza_delivery_api.git
  • Create your virtualenv with Pipenv or virtualenv and activate it.
  • Install the requirements with pip install -r requirements.txt
  • Set Up your PostgreSQL database and set its URI in your database.py
engine=create_engine('postgresql://postgres:<username>:<password>@localhost/<db_name>',
    echo=True
)
  • Create your database by running python init_db.py
  • Finally run the API ``` uvicorn main:app ``

pizza_delivery_api's People

Contributors

minnullinilshat avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.