Skip to content

This repository is a backend of a Restaurant written in node Express and mongodb.

Notifications You must be signed in to change notification settings

MAb540/RestaurantBackend

Repository files navigation

RestaurantBackend

This repository is a backend of a Restaurant app written in node Express and mongodb.

Getting Started

  1. Clone the repo using

  1. Installation

  • Run npm install to install all project dependencies available in package.json file.
  1. Add your credentials in .env file at root directory

  • In .env file
    1. mongoUrl = // Add your mongodb database connection URL here
    2. secretKey = // Secret key to be used in jwt encrypting jwt
  1. Development mode

  • Having everything installed run "npm run dev". This command will start your server using nodemon package as included in the package.json file.
  1. Features

  • You can Signup a user using username, and Password.
  • You can Login a user using username and password and user will be authenticated using a jwt token.
  • The app has two types of users one one will be admin and other will be simple user.
  • The app has different routes used to list Restaurant related things.
  • There are route for dishes, leaders, promotions and comments on dishes.
  • Admin can add dishes,promotions with their respective descriptions.
  • User can comments and can add dishes to their favrouties.
  • There are many more features in this project.

About

This repository is a backend of a Restaurant written in node Express and mongodb.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages