Code Monkey home page Code Monkey logo

payalpatra / food-ordering-system Goto Github PK

View Code? Open in Web Editor NEW
9.0 2.0 1.0 658 KB

This is a Order Placement System, This application has 3 roles (i.e Guest, Customer, Admin). The Customer can register and Order any Food item, access all his past orders but can not access the orders of other customers. The admin can access the orders and information of all the users. It also stores sessions/cookies.

Home Page: https://dry-wave-51739.herokuapp.com/

JavaScript 96.57% CSS 0.89% SCSS 0.34% EJS 2.21%
scss nodejs expressjs axios ejs-templates bcrypt mongoose express-ejs-layouts express-flash express-session

food-ordering-system's Introduction

Coverage Status NPM Build Status

Installation Guidlines

STEP 1

  git clone https://github.com/payalpatra/Food-Ordering-System.git

STEP 2

  npm install

STEP 3

Create .env file in the root directory and add your MongoDB Database Connection Url & Cookie secret with the following variable name
COOKIE_SECRET = thisismysecret
DB_CONNECTION = ""

STEP 4

(Make sure you run both this on the root directory of the Project File)
  • Starting The Server
  nodemon server 
  • Compiling sass & js files
 npm run watch

STEP 5

Since the whole Menu Section data is dynamically pulled from the Database. Add the json data to the Database (items collection). The project folder consists of a menus.json file. Copy the whole data set and add it to the items collection of the Database.

How to get access to the Admin Role ??

After Successfull Setup, Register as a user (by default your role will be Customer). Then replace the role of the user manually as the " admin " in the Database.(users collection).

Users Role

Route to admin orders page ??

Make sure you login through the admin account (it's protected and can't be accessed other than admin role) , After Successful login you can access the admin orders page with this route http://localhost:3000/admin/orders

Snapshots

Home Page

Home

Menu Page

menu

Order Placing Page

placeorder

Customer's Orders Page

customer panel

Admin Orders Page

admin panel

Empty Cart Page

empty cart

Give this a โœจ if you like it ๐Ÿ˜Š

Author

Payal Patra

Let's Connect ๐Ÿš€

payalpatra105 payalpatra105 p_iconic_

food-ordering-system's People

Contributors

payalpatra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

instinctwarrior

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.