- Authentication
- JWT Token
- Hash Password
- Create Restaurants
- Create Menu for Restaurants
- Book Orders
NPM Modules: Express.js,Mongoose.js,bcrypt,jwt,dotenv.
Database: MonogDB
- clone the project
git clone https://github.com/raj8888/food_delievey.git
- Go to the Repo
cd food_delievey
- For Install Modules
npm i
- For download nodemon globally
npm install -g nodemon
- For start server
nodemon index.js
MongoURL
seckey
port
- for user register
POST/api/users/register
- for user login
POST/api/users/login
- for create new password
PATCH/api/users/:userID/reset
Authentication required for next all routes
- for getting all Restaurants
GET/api/restaurants/
- for getting particular Restaurants
GET/api/restaurants/:id
- for getting particular Restaurants Menu
GET/api/restaurants/:id/menu
- for creating restaurants
POST/api/restaurants/
- for creating menu for restaurants
POST/api/restaurants/:id/menu
- for delete menu for restaurants
DELETE/api/restaurants/:resid/menu/:menuid
- for create order
POST/orders/:resid/:menuid
- for getting particular order details
GET/orders/:id
- for change the status of id
PATCH/orders/:id