MERN Stack Multi-Vendor Restaurant Application Documentation

                                

                                    MERN Stack Multi-Vendor Restaurant Application Documentation

Dependencies

·         express

·         mongoose

·         dotenv

·         body-parser

·         nodemon

·         jsonwebtoken (JW Token)

·         bcryptjs

·         multer

·         cors

Connection to Database

API Creation

                Models

                                Vendor:

Properties:  username, email, password

                                Firm:

Properties:   firmName, area, category, region, offer , image

                                Product:

Properties:   productName, price, category, image, bestseller, description

                Controllers

                                vendorController

                                firmController

                                productController

                Routes  

                                vendorRoutes

                                firmRoutes

                                productRoutes

 

Different JWTokens for evey login

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2ZW5kb3JJZCI6IjY1ZjA5Njk0YWZlYzMwNWE1YTI5MDVkYSIsImlhdCI6MTcxMDMzMDkwOSwiZXhwIjoxNzEwMzM0NTA5fQ.b_FvfjFXA7fE-rzicZI41htrPZHFM2YyfmoGnA7Cj9o

 

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2ZW5kb3JJZCI6IjY1ZjA5Njk0YWZlYzMwNWE1YTI5MDVkYSIsImlhdCI6MTcxMDMzMDk0OCwiZXhwIjoxNzEwMzM0NTQ4fQ.gVMwMO8kz8d-LwaM8CrzKWgd2UvgCC9J83VGUrCSHw8

 

eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ2ZW5kb3JJZCI6IjY1ZjA5Njk0YWZlYzMwNWE1YTI5MDVkYSIsImlhdCI6MTcxMDMzMDk3MSwiZXhwIjoxNzEwMzM0NTcxfQ.WjflFZK47SkO3-sOr9MjrfwBQKJj7uAYvI6j4IvJcLY

 

 

 

API Routes:

                Vendor:

                            Vendor Register:

  https://backend-nodejs-suby.onrender.com/vendor/register

Vendor Login:

  https://backend-nodejs-suby.onrender.com/ vendor/login

Get All vendor details with relations records:

{API used for React client side frontend}

  https://backend-nodejs-suby.onrender.com/vendor/all-vendors

 https://backend-nodejs-suby.onrender.com/vendor/single-vendor/:vendorId

Image Uploads:

  https://backend-nodejs-suby.onrender.com/uploads/:imageName

Firm:

                Add Firm to Vendor by JW Token:

 https://backend-nodejs-suby.onrender.com/firm/add-firm

Delete Firm by Id:

  https://backend-nodejs-suby.onrender.com/firm/:firmId

Products:

                Add Product to Firm by Id:

  https://backend-nodejs-suby.onrender.com/product/add-product/:firmId

Get Products by FirmId:

 https://backend-nodejs-suby.onrender.com/product/:firmId/products

Delete Product by Id:

  https://backend-nodejs-suby.onrender.com/product/:productId

 


Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. Login means token is not generated only response is welcome to suby

    ReplyDelete
  3. https://backend-nodejs-suby.onrender.com/ vendor/login. need to remove the space here
    "com/ ven" this space need to remove

    ReplyDelete
    Replies
    1. bro please provide API url link .its showing 'Welcome to SUBY'

      Delete
    2. https://backend-nodejs-suby.onrender.com/vendor/all-vendors

      Delete
  4. bro please provide API url link .its showing 'Welcome to SUBY'

    ReplyDelete
  5. Anna nen ippude backend successful ga miru cheppinattu chesanu. ippudu frontend chestunna andule starting lo manam api nunchi data get chesi console lo print chestam kada "This is API data" ani na localhost lo only 2 records unnai. oka 20 records ala insert cheyyalante individual ga miru backend lo cheppinattu anni cheyyalsindena ?
    Leda inka vere option emanna unda?

    And anna alage nak miru cheppe projects chala baga nachhai and clear ga pin to pin understand avyunnai.

    konchem touch lo undataniki mi contact emanna istara Anna. Ante edaina doubt vaste konchem mimmalni adigi clarify cheskundam ani.

    My name is Narayana
    B.Tech 2024 Graduated in Tirupati Sree Vidyanikethan Engineering College(IT)
    Currently doing Internhip in banglore in STQC(Govt of. India) Company on Software Testing Role.

    If possible please provide your social media id also.

    Thank you Kalyan Anna.

    ReplyDelete
  6. Sir,In ProductsMenu It Shows "500:internal Server error" Can You Explain the problem

    ReplyDelete

Post a Comment

Popular posts from this blog

Visual Studio Code Keyboard Shortcuts