Coder Social home page Coder Social logo

hungry's Introduction

#Hungry

Demo server. Meant to mimic a food service backend. Python + SQLite FTW!

##APIs

  • Order
  • Food Items

####The Order API ######Fetch __SERVER__/order/fetch/<order_id> Meant to fetch the complete details of an order.

######Rain __SERVER__/order/rain Gets a list of all orders present. Can be filtered by status using 'status' in a URL parameter (logically, 0 is 'placed', 1 is 'in transit', 2 is 'delivered', 3 is 'cancelled')

######Keep

  • __SERVER__/order/keep
  • __SERVER__/order/keep/<order_id> Invoke without order ID to save a new order, with order ID to update existing. Only need supply the changed parameters in the API if updating existing records. Takes customer_id, items, status_track as parameters. customer_id should exist beforehand (foreign key with customers table), items is a comma-separated list of item IDs in the menu, and status_track is the status of the order.

####The Food Item API ######Fetch __SERVER__/item/fetch/<item_id> Meant to fetch the complete details of an item.

######Rain __SERVER__/order/rain Gets a list of all items on the menu.

##Setup

  • Install dependencies from requirements.txt
  • Run bootstrap.py to seed the database
  • Run server with run.py

hungry's People

Contributors

abhishekchoudhary avatar

Watchers

James Cloos avatar  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.