GithubHelp home page GithubHelp logo

coffeeshop-api's Introduction

Coffeeshop

Coffeeshop is a white-label product intended to work for small companies.

Features:

  • Multiple store management
  • Category and product management
  • Payment integration
  • Order creation (self-service)
  • Current orders (so the barista can prepare then)

The idea is to make the project incrementally, ideas for future:

  • Online order (client can order from web/app)
  • Price management
  • Availability
  • Coupons
  • Prepaid discount
  • Login integrations (Google, Apple, etc)
  • Product options (e.g. with cup lid, milk type)
  • Other payment integrations
  • Propose something!

Ordering flow

Order

POST localhost:8080/api/v1/orders

{
  "clientName": "Ana",
  "total": 174,
  "items": ["625383ceefe1c42e5bd4b3d3", "62538420efe1c42e5bd4b3d4"],
  "paid": true
}

response

{
  "id": "62538af6efe1c42e5bd4b3db",
  "createdAt": "2022-04-10T22:57:10.516277",
  "clientName": "Ana",
  "total": 174,
  "products": [
    {
      "id": "625383ceefe1c42e5bd4b3d3",
      "image": "http://placeimg.com/640/480",
      "title": "Rustic Frozen Tuna",
      "subtitle": "Unbranded Plastic Computer",
      "description": "bifurcated",
      "price": 167,
      "categoryId": "62536e74efe1c42e5bd4b3d0"
    },
    {
      "id": "62538420efe1c42e5bd4b3d4",
      "image": "http://placeimg.com/640/480",
      "title": "Ergonomic Metal Car",
      "subtitle": "Intelligent Frozen Chicken",
      "description": "bottom-line",
      "price": 263,
      "categoryId": "62536e74efe1c42e5bd4b3d0"
    }
  ],
  "paid": true
}

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.