Giter Site home page Giter Site logo

fast-food's Introduction

Build Status Code Climate Coverage Status

Fast_food_fast

Web Application for ordering varieties of Food

fast food fast is a food delivery service app for a restaurant This file consist of the UI template hosted on GH-pages and API hosted on Heroku

Prerequisites

  1. Node js
  2. Postman To test the endpoints
  3. Any text Editor
  4. Git
  5. Postgresql

Installing

Clone this project using git clone https://github.com/Danielshow/Fast-Food/ on your bash or cmd

mkdir fast-food
cd fast-food
git clone https://github.com/Danielshow/Fast-Food/
cd "fast food"
npm Install
git checkout develop
npm start

Hurray!!! You now have the files on your local computer npm install will install all app dependencies npm start will start the project

make your environment variable .env file Fill in this data for postgresql and Json web token to work

PORT=3000
PGHOST=localhost
PGPASSWORD=
PGDATABASE=foodfast
PGUSER=
PGPORT=7432
JWT_KEY=

Test

npm run test

Features

  1. user can create an account and log in
  2. A user should be able to order for food
  3. The admin should be able to add, edit, or delete fast food items
  4. The admin should be able to see a list of fast food items
  5. The admin user should be able to see list of orders, Accept and decline orders, mark orders as completed
  6. User should be able to see history of ordered food

API Routes

HTTP verb Routes Description
POST /api/v1/auth/signup Register a user
POST /api/v1/auth/login Login a user
GET /api/v1/auth/me Get a specific user by user token
GET /api/v1/auth/logout Logout a user
GET /api/v1/menu Get all available food on the webpage
GET /api/v1/menu/:id Get one food by ID
POST /api/v1/menu Post new food to foodlist
PUT /api/v1/menu/:id Update food by id
DELETE /api/v1/menu/:id Delete one food from the foodlist by ID
GET /api/v1/total Get Price of all food ordered
GET / Shows welcome page
GET /api/v1/orders Get all ordered foods
GET /api/v1/orders/:id Get one order by ID
GET /api/v1/users/:id/orders Get all order of a specific user by ID
POST /api/v1/orders Post new order by user
PUT /api/v1/orders/:id Update order status
GET /api/v1/users Get all registered user
DELETE /api/v1/users Delete user account by user token
DELETE /api/v1/users/:id Delete user by ID
PUT /api/v1/users/:id Promote user to admin

Contributing

If you'd like to Contribute, please fork the repository and create a new branch, commit to that branch and make a pull request

Links

  1. Front End Homepage
  2. API on Heroku
  3. Completed App

Author

  1. Danielshow

Acknowledgement

  1. Traversy Media
  2. Net Ninja

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.