Code Monkey home page Code Monkey logo

pizzashop's Introduction

Pizzashop:

Story Points

  1. New users can be created, their information can be edited, and they can be deleted.
    GET /users
    POST /users
    DELETE /users
    PUT /users

  2. Users can log in and log out by creating or destroying a token.
    GET /tokens
    POST/tokens DELETE /tokens?id=tokenid
    PUT /tokens

  3. When a user is logged in, they should be able to GET all the possible menu items (these items can be hardcoded into the system).
    GET /items

  4. A logged-in user should be able to fill a shopping cart with menu items.
    GET /cart
    POST/cart
    DELETE /cart?id=orderid

  5. A logged-in user should be able to create an order.
    GET /orders
    POST/orders

Note: Replace stripe.secret with your own stripe api secret in config.js

  1. Send mail to users on successful orders
    Replace mailgun.api with your own stripe api key in config.js

Total Commands Available in CLI:

'exit': 'Kill the Application',

'help': 'Show this help page',

'items': 'Show list of items available',

'orders': 'Show all orders placed',

'orders --recent': 'Show list of all items placed in the last 24 hours',

'orders --id {orderid}': 'Display order having orderid',

'users': 'Show all users in the system',

'users --recent': 'Show all users who have signed up in the last 24 hours',

'users --id {userid}': 'Display user with userid'

pizzashop's People

Contributors

shauryadhadwal avatar

Watchers

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