/Toll_Plaza

Toll Management System to manage toll plaza and vehicle passes using bootstrap,Nodejs,MongoDb!!

Primary LanguageJavaScript

Toll_Management_System

Toll Management System to manage toll plaza and vehicle passes using bootstrap,Nodejs,MongoDb!!

How To Run?

To run this website run this command on command prompt on root folder.

npm start or node app.js

It will run under the url http://127.0.0.1:3000/

Login Details

Email and Password for Website:

Admin :
Email :admin@cq.com
Password: admincq

User:
Email : bro@gmail.com
Password: admincq

Email :ajay@cq.com
Password: admincq

Features

  • Dynamic Data by mongoose database
  • Different Views for Admin and Staff
  • Manage Whole Toll Plaza
  • Manage Reports and Passes
  • Month wise Sales Report
  • Responsive Layout
  • Mobile Friendly
  • Open Source

How to Use ?

  1. Use mongorestore command to add database to your Local Machine.
  2. Run Mongo Server
  3. Run Server File app.js
  4. Run local host on port number 3000

Pre-requisites

  • Node JS (Tested on v12.14.0)
  • Mongoose
  • Pre-requisites or Dependencies(Below)

Extra Dependencies :

  • Mongoose
  • Express
  • Express-Session
  • PATH
  • EJS
  • EJS Mate
  • Bcrypt Module
  • HTTP
  • Express
npm install express
  • EJS
npm install ejs
  • Express-Session
npm install express-session
  • Mongoose
npm install mongoose
  • Dotenv
npm install dotenv
  • Bcrypt
npm install bcrypt  / npm i bcrypt

Schema

User Schema

Name Type Required Unique Encrpyted
Name String Yes No No
Email String Yes Yes No
Password String Yes No Yes
Address String No No No
City String Yes No No
Gender String Yes No No
Role String Yes No No
Phone String No No No

Category Schema

Name Type
Name String
Status String
CreateBy String

Pass Schema

Name Type
Category String
Registration String
IssueDate Date
Name String
Age String
Address String
Phone String
Balance Number

Receipt Schema

Name Type
Category String
vehicleNumber String
entryDate String
entryTime String
receiptdate Date
trip String
cost Number

Directory

|___ Root
|   |
|   |--- Controller
|   |    |--- Admin.js
|   |    |--- Login.js
|   |    |--- Staff.js
|   |
|   |--- Dump (Mongoose Dump) (Dump)
|   |
|   |--- Middlewares
|   |    |--- auth.js
|   |
|   |--- Models
|   |    |--- CategorySchema.js
|   |    |--- PassSchema.js
|   |    |--- ReceiptSchema.js
|   |    |--- UserSchema.js
|   |
|   |--- Public
|   |    |--- css (Static)
|   |    |--- images (Staic)
|   |    |--- js (Static)
|   |
|   |--- Routes
|   |    |--- Handlers
|   |    |    |--- Admin.ejs
|   |    |    |--- Login.ejs
|   |    |    |--- Staff.ejs
|   |    |--- index.js
|   |
|   |--- Server.js
|   |
|   |--- Services
|   |    |--- Admin.js
|   |    |--- Login.js
|   |    |--- Staff.js
|   |
|   |--- Views
|   |    |--- layout
|   |    |    |--- layout.ejs
|   |    | 
|   |    |--- partials
|   |    |    |--- footbar.ejs
|   |    |    |--- header.ejs
|   |    |    |--- navbar.ejs
|   |    | 
|   |    |--- add_pass.ejs
|   |    |--- add_staff.ejs
|   |    |--- addReceipt.ejs
|   |    |--- changePassword.ejs
|   |    |--- dashboard.ejs
|   |    |--- login.ejs
|   |    |--- manage_pass.ejs
|   |    |--- manage_staff.ejs
|   |    |--- manageReceipt.ejs
|   |    |--- passCount.ejs
|   |    |--- passSales.ejs
|   |    |--- passUser.ejs
|   |    |--- receiptCount.ejs
|   |    |--- receiptSales.ejs