This is BURGER-HUB's Backend.
For building the backend, I used NodeJS, ExpressJS, MongoDB, cookie-parser, cors, dotenv, express, express-session, mongoose, passport, passport-google-oauth20, razorpay.
Here is the files and folder structure, tech stack and libraries.
- NodeJS
- ExpressJS
- MongoDB
- cookie-parser
- cors
- dotenv
- express
- express-session
- mongoose
- passport
- passport-google-oauth20
- razorpay
- config
- controllers
- middlewares
- models
- routes
- utils
- .env
- .gitignore
- app.js
- index.js
- package-lock.json
- package.json
- README.md
To run the backend without any errors, you need to add the following fields in the .env file.
- PORT
- MONGODB_URL
- GOOGLE_CLIENT_ID
- GOOGLE_CALLBACK_URL
- FRONTEND_URL
- SESSION_SECRET
- RAZORPAY_API_KEY
- RAZORPAY_API_SECRET