{"id":15104861,"url":"https://github.com/smile040501/railwayreservationsystem","last_synced_at":"2025-06-28T05:33:09.379Z","repository":{"id":99608456,"uuid":"449634187","full_name":"Smile040501/RailwayReservationSystem","owner":"Smile040501","description":"This project aims to build a railway reservation system which is a software application that handles the entire booking data of the railway. This software can also be used by different railway companies to carry out operations in a smooth, effective, and automated manner.","archived":false,"fork":false,"pushed_at":"2022-05-09T18:41:29.000Z","size":3641,"stargazers_count":3,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T14:13:42.115Z","etag":null,"topics":["plpgsql","plpgsql-function","plpgsql-scripts","postgres","postgresql","postgresql-database","psql","psql-client","psql-database","railway","railway-api","railway-management","railway-oriented-programming","railway-reservation","railway-reservation-system","railways","railways-enquiry","reservation-management","reservation-system","row-level-security"],"latest_commit_sha":null,"homepage":"","language":"PLpgSQL","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Smile040501.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-01-19T09:51:47.000Z","updated_at":"2024-08-26T15:42:25.000Z","dependencies_parsed_at":"2024-05-12T01:45:46.591Z","dependency_job_id":null,"html_url":"https://github.com/Smile040501/RailwayReservationSystem","commit_stats":{"total_commits":36,"total_committers":3,"mean_commits":12.0,"dds":"0.19444444444444442","last_synced_commit":"3884ac96ba7e3d9e38f545e3686bdc769631de92"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Smile040501/RailwayReservationSystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Smile040501%2FRailwayReservationSystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Smile040501%2FRailwayReservationSystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Smile040501%2FRailwayReservationSystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Smile040501%2FRailwayReservationSystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Smile040501","download_url":"https://codeload.github.com/Smile040501/RailwayReservationSystem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Smile040501%2FRailwayReservationSystem/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262382027,"owners_count":23302256,"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":["plpgsql","plpgsql-function","plpgsql-scripts","postgres","postgresql","postgresql-database","psql","psql-client","psql-database","railway","railway-api","railway-management","railway-oriented-programming","railway-reservation","railway-reservation-system","railways","railways-enquiry","reservation-management","reservation-system","row-level-security"],"created_at":"2024-09-25T20:03:13.681Z","updated_at":"2025-06-28T05:33:09.331Z","avatar_url":"https://github.com/Smile040501.png","language":"PLpgSQL","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Railway Reservation System\n\nThis project aims to build a railway reservation system which is a software application that handles the entire booking data of the railway. It has been developed to override the problems prevailing in the practical manual system. It is fully based on the concept of reserving train tickets for various destinations reliably and consistently. It reduces the stress and workload of the employee who books the ticket. It also lets the travelers book and finds schedules for the trains with ease. This software can also be used by different railway companies to carry out operations in a smooth, effective, and automated manner.\n\n## Technologies Used\n\n-   PostgreSQL\n-   PLpgSQL\n\n## Installation\n\n-   Install [postgres](https://www.postgresql.org/download/)\n-   Clone this repository\n    ```sh\n    $ git clone git@github.com:Smile040501/RailwayReservationSystem.git\n    ```\n-   Change the directory to the source code directory\n    ```sh\n    $ cd RailwayReservationSystem/src\n    ```\n-   Start **psql** and execute the **makefile.sql**.\\\n    The passwords for the testing users are their names itself which needs to be entered for every execution of the makefile.\n    ```sh\n    $ psql -U postgres\n    ```\n    ```\n    postgres=# \\i makefile.sql\n    ```\n\n## ER Diagram\n\n![ER Diagram](./images/er-diagram.png \"Railway Reservation System\")\n\n## Structure, Integrity and General Constraints of the Database\n\n**Users** (Customers with an account and the authority to book tickets)\n\n![](images/t1.png)\n\n**Passengers** (Miscellaneous customers)\n\n![](images/t2.png)\n\n**Railway Stations**\n\n![](images/t3.png)\n\n**Trains**\n\n![](images/t4.png)\n\n**Schedule**\n\n![](images/t5.png)\n\n**Ticket**\n\n![](images/t6.png)\n\n## Functionalities of the Project\n\nSee [`FUNCTIONALITIES.md`](FUNCTIONALITIES.md) for detailed usage.\n\n-   Services for the `station_master` Role\n    -   Add a New Railway Station\n    -   Add a New Train and its Schedule\n    -   Update the Delay Time of a Train\n-   Services for the `users` Role (Customers with an account)\n    -   Book Tickets\n    -   Cancel Booking\n-   Services for everyone\n    -   Create a New Account and Register as a Customer\n    -   Available Trains Between Two Given Stations On a Given Date\n    -   Full Schedule of a Given Train\n    -   Schedule of Different Trains at a Given Station\n    -   Fare of a Given Train Between Two Given Stations\n    -   Get Details of a Passenger Given PNR\n    -   Number of Seats Available in a Given Train Between Two Given Stations on a Given Date\n    -   Check Ticket Status\n    -   Check Delay Time of a Train\n\n## Design\n\nSee [`DESIGN.md`](DESIGN.md)\n\n## Contributors\n\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd align=\"center\"\u003e\n            \u003ca href=\"https://www.linkedin.com/in/mayank-singla-001pt\"\u003e\n                \u003cimg\n                    src=\"https://avatars.githubusercontent.com/u/62458127?v=4\u0026s=150\"\n                    width=\"150px\"\n                    alt=\"Mayank Singla\"\n                /\u003e\n                \u003cbr/\u003e\n                \u003csub\u003e\n                    \u003cb\u003eMayank Singla\u003c/b\u003e\n                \u003c/sub\u003e\n            \u003c/a\u003e\n        \u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\n            \u003ca href=\"https://github.com/mishra-satyam\"\u003e\n                \u003cimg\n                    src=\"https://avatars.githubusercontent.com/u/72550253?v=4\u0026s=150\"\n                    width=\"150px\"\n                    alt=\"Satyam Mishra\"\n                /\u003e\n                \u003cbr/\u003e\n                \u003csub\u003e\n                    \u003cb\u003eSatyam Mishra\u003c/b\u003e\n                \u003c/sub\u003e\n            \u003c/a\u003e\n        \u003c/td\u003e\n        \u003ctd align=\"center\"\u003e\n            \u003ca href=\"https://github.com/agarwaladitya0401\"\u003e\n                \u003cimg\n                    src=\"https://avatars.githubusercontent.com/u/67512998?v=4\u0026s=150\"\n                    width=\"150px\"\n                    alt=\"Aditya Agarwal\"\n                /\u003e\n                \u003cbr/\u003e\n                \u003csub\u003e\n                    \u003cb\u003eAditya Agarwal\u003c/b\u003e\n                \u003c/sub\u003e\n            \u003c/a\u003e\n        \u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmile040501%2Frailwayreservationsystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsmile040501%2Frailwayreservationsystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsmile040501%2Frailwayreservationsystem/lists"}