{"id":28547322,"url":"https://github.com/saurabhpagrut/tms-application","last_synced_at":"2026-04-09T17:40:27.702Z","repository":{"id":61431098,"uuid":"544480182","full_name":"SaurabhPagrut/TMS-Application","owner":"SaurabhPagrut","description":"We are developing this Frontend Application for calling a REST API for an Online Trip Management System.","archived":false,"fork":false,"pushed_at":"2022-11-15T14:14:35.000Z","size":581,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-10T00:11:12.301Z","etag":null,"topics":["backend","css","fetch","frontend","html","java","javascript","jpa","localhost","repository","rest-api","spring","spring-boot","trip-management"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SaurabhPagrut.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-10-02T15:34:27.000Z","updated_at":"2023-07-24T20:42:28.000Z","dependencies_parsed_at":"2023-01-22T03:17:37.106Z","dependency_job_id":null,"html_url":"https://github.com/SaurabhPagrut/TMS-Application","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SaurabhPagrut/TMS-Application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaurabhPagrut%2FTMS-Application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaurabhPagrut%2FTMS-Application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaurabhPagrut%2FTMS-Application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaurabhPagrut%2FTMS-Application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SaurabhPagrut","download_url":"https://codeload.github.com/SaurabhPagrut/TMS-Application/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SaurabhPagrut%2FTMS-Application/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264130511,"owners_count":23562041,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backend","css","fetch","frontend","html","java","javascript","jpa","localhost","repository","rest-api","spring","spring-boot","trip-management"],"created_at":"2025-06-10T00:10:32.735Z","updated_at":"2025-12-30T21:26:49.236Z","avatar_url":"https://github.com/SaurabhPagrut.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TMS-Application\n# REST API for an Online Trip Management System\n\n- We have developed this Frontend Application for calling a REST API for an Online Trip Management System. This API performs all the fundamental CRUD operations of any Trip Management Application platform with user validation at every step.\n- This project is developed by team of 5 Back-End Developers during project week in Masai School.\n\n## Tech Stack\n\n- Java\n- Spring Framework\n- Spring Boot\n- Spring Data JPA\n- Hibernate\n- MySQL\n- PostMan\n- Swagger\n- Lombok\n- HTML\n- CSS\n- JavaScript\n\n## Modules\n\n- Login, Logout Module\n- User Module\n- Admin Module\n- Booking Management Module\n- Feedback Module\n- Report Module\n- Trip Package Management Module\n- Route Mangement Module\n\n## Features\n\n- User and Admin authentication \u0026 validation with session uuid having.\n- Admin Features:\n  - Administrator Role of the entire application\n  - Only registered admins with valid session token can add/update/delete Package,Hotel,Route or customer from main database.\n  - Admin can access the details of different Routes, Bus, Packages, TicketDetails,Feedback,Customer,Reports,etc.\n- User Features:\n  - A user can register himself or herself on the platform.\n  - He/She can check the Packages and Hotels availabilty.\n  - If Trip Package is available, can book the trip package by providing payment details.\n  - After booking, he will get booking details for the whole Package inside this there will be all details regarding the ticket details ,total cost, etc.\n  - If the customer want can cancel the booking.\n\n## Contributors\n\n- [@Tridip Rong](https://github.com/TridipRong)\n- [@MD Farooque Ansari](https://github.com/mrFarooque)\n- [@Pushpam Kumar](https://github.com/pushpam-386)\n- [@Saurabh Pragrut](https://github.com/SaurabhPagrut)\n- [@Efat Husneara](https://github.com/efat56)\n\n## Installation \u0026 Run\n\n- Before running the API server, you should update the database config inside the [application.properties](https://github.com/mrFarooque/rightful-order-9279/blob/main/TripManagementSystem/src/main/resources/application.properties) file.\n- Update the port number, username and password as per your local database config.\n\n```\n    server.port=8888\n\n    spring.datasource.url=jdbc:mysql://localhost:3306/tmsdb;\n    spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver\n    spring.datasource.username=root\n    spring.datasource.password=root\n\n```\n\n\u003c!--\n\n## AWS Deployed link\n\n## API Root Endpoint\n\n`https://localhost:8080/`\n\n`http://localhost:8080/swagger-ui/`\n\n## API Module Endpoints\n\n### Login Module\n\n- `POST //api/adminlogin` : Admin can login with mobile number and password provided at the time of registation\n\n### User Module\n\n- `POST /customer/login` : Logging in customer with valid mobile number \u0026 password\n- `GET /customer/availablecabs` : Getting the list of all the available cabs\n- `GET /customers/cabs` : Getting All the cabs\n- `GET /customers/checkhistory` : Getting the history of completed tr\n- `PUT /customer/update/{mobile}` : Updates customer details based on mobile number\n- `PATCH /customer/updatepassword/{mobile}` : Updates customer's password based on the given mobile number\n- `POST /customer/booktrip` : Customer can book a cab\n- `POST /customer/updatetrip` : Customer can modify or update the trip\n- `POST /customer/logout` : Logging out customer based on session token\n- `DELETE /customer/delete` : Deletes logged in user\n- `DELETE /customer/complete/{tripid}` : Completed the trip with the given tripid\n- `DELETE /customer/canceltrip` : Cancel the trip with the given tripid\n\n### Admin Module\n\n- `POST /admin/register` : Register a new admin with proper data validation and admin session\n- `POST /admin/login` : Admin can login with mobile number and password provided at the time of registation\n- `GET /admin/logout` : Logging out admin based on session token\n- `GET /admin/listoftripsbycustomer` : Get list of trips of by a customer id\n- `GET /admin/listoftrips` : Get list of trips of all the trips\n- `GET /admin/listocustomers` : Get list of all the customers\n- `GET /admin/listodrivers` : Get list of all the drivers\n- `PUT /admin/update/{username}` : Updates admin detaisl by passed user name\n- `DELETE /admin/delete` : Deletes the admin with passed id \n\n### Sample API Response for Admin Login\n\n`POST localhost:8080/login/adminlogin`\n\n- Request Body\n\n```\n    {\n        \"mobileNo\": \"7056319981\",\n        \"password\": \"Clickme@007\"\n    }\n```\n\n- Response\n\n```\n   CurrentAdminSession(id=11, adminId=10, uuid=ZaVLaK, localDateTime=2022-08-17T11:13:42.772910500)\n\n```\n\n## Video Explainer of flow control\n\n\u003ca href=\"https://drive.google.com/file/d/17K024rskhj2pOkma9BQkG0Zxeozvd3XA/view?usp=sharing\"\u003e**Video Drive Link** \u003c/a\u003e\n\n### E-R Diagram Of Covid-19 Application\n\n---\n\n\u003cimg src=\".\\Images\\ER_Diagram_TMS.jpeg\" style=\"max-width: 100%; display: inline-block;\" data-target=\"animated-image.originalImage\"\u003e\n\n---\n\n### Swagger UI\n\n---\n\n\u003cimg src=\".\\Images\\SwaggerUI.png\" style=\"max-width: 100%; display: inline-block;\" data-target=\"animated-image.originalImage\"\u003e\n\n---\n\n### Login Controller\n\n---\n\n\u003cimg src=\".\\Images\\LogInController.png\" style=\"max-width: 100%; display: inline-block;\" data-target=\"animated-image.originalImage\"\u003e\n\n---\n\n### Admin Controller\n\n---\n\n\u003cimg src=\".\\Images\\AdminController.png\" style=\"max-width: 100%; display: inline-block;\" data-target=\"animated-image.originalImage\"\u003e\n\n---\n\n### User Controller\n\n---\n\n\u003cimg src=\".\\Images\\CustomerController.png\" style=\"max-width: 100%; display: inline-block;\" data-target=\"animated-image.originalImage\"\u003e\n\n---\n\n### Model Controller\n\n---\n\n\u003cimg src=\".\\Images\\Models.png\" style=\"max-width: 100%; display: inline-block;\" data-target=\"animated-image.originalImage\"\u003e\n\n---\n\n\u003cimg src=\"https://github.com/shivamgarg796/Spring-work/blob/master/Images/Thank-you-word-cloud.jpg?raw=true\" style=\"max-width: 100%; display: inline-block;\" data-target=\"animated-image.originalImage\"\u003e\n\n---\n--\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaurabhpagrut%2Ftms-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaurabhpagrut%2Ftms-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaurabhpagrut%2Ftms-application/lists"}