Skip to content

The backend of a MEAN stack project called otôbus, a bus management system.

License

Notifications You must be signed in to change notification settings

nimishjn/otobus-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

otobus-backend

signup

This repository is the backend of a MEAN stack project called otôbus, a bus management system built for a college project.

Frontend Repository

Tech Stack

  • JavaScript
  • NodeJs
  • Express
  • MongoDB

Functionalities

  • Signup
  • Login
  • List of buses
  • Displaying the details of individual Buses
  • Booking a Bus
  • List of Bookings
  • Delete a Booking
  • User details
  • Unique Book Id and Booking Id generator
  • JWT Token generator
  • JWT authentication for private routes
  • Responds in error codes
  • MongoDB connectivity

.env

DB_CONNECTION=####
TOKEN_SECRET=####
TOKEN_EXPIRES_IN=####s

Folder structure

root
├─ middleware
│  └─ authorize.js
├─ models
│  ├─ Booking.js
│  ├─ Bus.js
│  ├─ User.js
│  └─ dbInit.js
├─ package-lock.json
├─ package.json
├─ routes
│  ├─ bookBus.js
│  ├─ busDetails.js
│  ├─ deleteBooking.js
│  ├─ listBookings.js
│  ├─ listBuses.js
│  ├─ login.js
│  ├─ signup.js
│  └─ userDetails.js
├─ scripts
│  ├─ TokenGenerator.js
│  └─ idGenerator.js
├─ tools
│  └─ errorCodes.js
└─ app.js

Contributors


Nimish Jain

Rushil Saini

Tarunika Agarwal

About

The backend of a MEAN stack project called otôbus, a bus management system.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published