Skip to content

SUVAJIT-KARMAKAR/BACKDOOR

Repository files navigation

BACKDOOR

From your Application to your Doorstep, Backdoor has it all covered.

Logo

PACKAGES FOR THE PROJECT

  npm install bcrypt @types/bcrypt

bcrypt is a Node.js library for securely hashing and salting passwords, ensuring that even identical passwords produce unique hashes, protecting against brute-force attacks and enhancing overall security.

  npm install cors @types/cors

CORS (Cross-Origin Resource Sharing) is a security feature in web browsers that allows or restricts web applications from making requests to a different domain than the one serving the web page.

  npm install express @types/express

Express is a minimal and flexible Node.js web application framework that provides a robust set of features for building web and mobile applications, including routing, middleware support, and HTTP utilities.

  npm install mongoose @types/mongoose

Mongoose is a Node.js library that provides a schema-based solution for modeling and interacting with MongoDB databases, enabling data validation, relationship management, and easy CRUD operations.

  npm install body-parser

Body-parser is a middleware in Express.js used to parse incoming request bodies in a middleware before your handlers. It supports parsing JSON, URL-encoded, and raw data formats.

  npm install jsonwebtoken @types/jsonwebtoken

jsonwebtoken is a Node.js library used for securely transmitting information between parties as a JSON object. It's commonly used for authentication, generating and verifying JSON Web Tokens (JWTs).

  npm install multer @types/multer

Multer is a Node.js middleware for handling multipart/form-data, primarily used for uploading files in Express applications. It processes incoming file uploads and stores them in specified locations.

RUNNING THE PROJECT LOCALLY

Git clone the project using the project HTTP / SSH link.

  git clone <link>

Use the 'll' terminal command to list the directories.

  ll
  ls -al
  cd backdoors/

Installing the dev-dependency packages for the project.

  npm install

Initiating the MongoDB Compass

  sudo systemctl status mongod
  sudo systemctl start mongod

Initiating the project server

  npm start

API ROUTES

    http://localhost:
PORT HANDLER
8001 ADMIN-ROUTE
8002 VENDOR-ROUTE
8003 FOOD-ROUTE

API ROUTING PATHS

ADMIN ROUTE http://localhost:8001/

  POST :http://localhost:8001/createvandor
  GET :http://localhost:8001/allvandors
  GET :http://localhost:8001/vandor/<link>

VENDOR ROUTE http://localhost:8002/

  POST :http://localhost:8002/login
  GET :http://localhost:8002/profile
  PATCH :http://localhost:8002/profile
  PATCH :http://localhost:8002/service
  POST :http://localhost:8002/addfood
  GET :http://localhost:8002/allfoods 

SHOPPING ROUTE http://localhost:8003/

  GET :http://localhost:8003/<pincode>
  GET :http://localhost:8003/top-restaurant/<pincode>
  GET :http://localhost:8003/foods-in-30/<pincode>
  GET :http://localhost:8003/search/<pincode>
  GET :http://localhost:8003/restaurant/<pincode>

POSTMAN CONFIGURATION

Logo

MONGODB CONFIGURATION

Logo

DOCKER CONTAINERIZATION

Logo Logo Logo

PROJECT CONTRIBUTORS

AUTHOR PROFILE
SUVAJIT KARMAKAR LINK
HRISHABH GAUTAM LINK
MANOSWITA BOSE LINK

PROJECT TIMELINE

  • (5) 00:00:00

About

All in all food delivery api that get's your hunger in control

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published