Giter VIP home page Giter VIP logo

fast-food-fast's Introduction

Coverage Status Build Status

fast-food-fast

its an APP used for ordering fast food and with an admin control.

Table of Contents

Tasks

https://akpante3.github.io/fast-food-fast/ https://api-fast-food.herokuapp.com/api/v1/

Features

.API endpoints for food orders .UI template

Installation and Setup

on[console] .cd server .nmp install .nmp start

Tests

npm test

Style

  • Eslint
  • Airbnb

Endpoints

  • [GETapi/v1/orders]
  • [GET api/v1/orders/:id]
  • [POSTapi/v1/orders]
  • [PUTapi/v1/orders/:id]
  • [POSTapi/v1/auth/login]
  • [POSTapi/v1/auth/signup]
  • [GETapi/v1/orders/auth/orders/:id/orders]
  • [POSTapi/v1/menu]
  • [GETapi/v1/menu]

How to use API on POSTMAN

HTTP VERBAPI ENDPOINTFUNCTIONINPUTOUTPUT
POST api/v1/auth/signup Signup user {
name: "string",
email: "string",
phone: "string",
address: "string",
password: "string"
}
{
message: "string",
token: "string"
}
POST api/v1/auth/login Login user {
email: "string",
password: "string"
}
{
message: "string",
token: "string"
}
POST api/v1/menu Create new menu {
menu: "string",
description: "string",
category: "string",
quantity: "string",
price: "string"
}
"Authorization": "token"
{
message: "string"
menu: {object}
}
GET api/v1/menu Get All Available Menu "Authorization": "token" or undefined {
message: "string"
allMenu: {object}
}
POST api/v1/orders Place order {
orderItems: [
{
menuId: "Number",
quantity: "Number"
}
],
location: "string" or undefined,
}
"Authorization": "token"
{
message: "string",
newOrder: {object}
}
GET api/v1/orders/:userId/orders Get user order history userId: "Number"
"Authorization": "token"
{
message: "string"
orderHistory: {object}
}
GET api/v1/orders Get all orders "Authorization": "token" {
message: "string"
allOrders: {object}
}
GET api/v1/orders/:orderId Get specific order "Authorization": "token" {
message: "string"
foundOrder: {object}
}

Technologies and Frameworks

. HTML, . CSS, . NodeJs,

How do I connect to the this API?

What return formats do you support?

fast-food-fast currently returns data in JSON format.

What kind of authentication is required?

N/A

Is there a request rate limit?

N/A

fast-food-fast's People

Contributors

akpante3 avatar

Watchers

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