PolyU Shuttle Bus WebService is developed using MEAN Stack(MongoDB, Express, Angular JS, and Node JS),which aims to provide the functionalities that user can search and save a route to plan a route and also allows the administrator to perform administrative operations like add, update and delete.
- Admin Login
- CRUD Timetables
- Search Timetable
- Export timetable to pdf and download it
Note:
-
Please kindly note that all these implementation were done in Mac OS environment, there may be some differences or unknown issues when running in Windows, please make proper changes when issue occurs.
-
In the package, there is folder called "MongoDB Screenshots" to create MongoDB accordingly as when I tried to export the script, no records exported.
-
To insert the data, you can refer to the folder "route timetables".
-
Please make sure mongodb is installed on your environment and make configuration accordingly. You can check below reference links.
-
Download Mongodb
-
Install Mongodb on Mac OS
https://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/
(For Windows platform, please check https://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/)
- Extract the Mongodb package, rename it to "mongodb" and put it in the "BusApp" folder.
-
-
Install Angular Js Reference link: https://www.npmjs.com/package/angular
-
Install Express Server
Reference link: http://expressjs.com/starter/installing.html
-
Install Node.js https://nodejs.org/en/download/package-manager/
Server Bring Up Steps:
-
Open the command prompt window, cd to the "BusApp" folder, then type "node server", if connection is successful, it will display a message saying "Server running on port 3000".
-
Open the command prompt window, cd to the mongodb folder which you have renamed, then cd to the "bin" folder, in the prompt window, type "./mongod" start the mongodb server.
-
Open another command prompt window, cd to the mongodb folder which you have renamed, then cd to the "bin" folder, in the prompt window, type "./mongo".
-
Open your browser, type localhost:3000, the main page of the PolyU Shuttle Bus Service will be displayed.
Hope you enjoy our service.
Thank you.