Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/samadhi1311/bus-schedules
Bus Schedules Web App built with Express and MongoDB
https://github.com/samadhi1311/bus-schedules
css3 ejs express html5 javascript mongodb
Last synced: 1 day ago
JSON representation
Bus Schedules Web App built with Express and MongoDB
- Host: GitHub
- URL: https://github.com/samadhi1311/bus-schedules
- Owner: samadhi1311
- Created: 2023-08-29T05:34:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-29T05:46:31.000Z (about 1 year ago)
- Last Synced: 2023-10-22T05:48:18.799Z (about 1 year ago)
- Topics: css3, ejs, express, html5, javascript, mongodb
- Language: EJS
- Homepage:
- Size: 2.88 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Bus Shedules Web App.
## Frontend technologies:
HTML/CSS/JS## Backend technologies:
Body-parser
EJS
Express
Express-Session
Mongodb## Project file structure
|- public
| |- images
| | |- bus_icon.png
| |
| |- stylesheets
| |- 404.cs
| |- about.cs
| |- contribute.cs
| |- index.cs
| |- login.cs
| |- master.cs
|
|- routes
| |- shedules.routes.js
|
|- views
| |- 404.ejs
| |- about.js
| |- contribute.ejs
| |- index.ejs
| |- login.ejs
|
|- app.js### The api inserts and retrieves data to a mongoDB cluster on cloud.
### How does this work.
- Users can search for shedules by selecting route 'starting point' and 'ending point'.
- Then the api will search for routes that contains selected points 'in order'. But, we have to consider about the 'route_reversed' value.
- If matches are available, it will show the output.### Schema of the database.
Buses_collection
{
license_no: {
type: String,
required: true
},
route_no: String,
route_start_times: String[],
route_finish_times String[],
contact_no: String,
route_reversed: Boolean,
}Routes_collection
{
route_no: String,
routes: String[],
}