{"id":22303904,"url":"https://github.com/rtewari056/train-ticket-booking-system","last_synced_at":"2026-04-09T15:46:46.523Z","repository":{"id":89780842,"uuid":"592776915","full_name":"rtewari056/train-ticket-booking-system","owner":"rtewari056","description":"Train Ticket Booking System powered by Vite.js","archived":false,"fork":false,"pushed_at":"2023-01-25T11:31:48.000Z","size":421,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T21:28:58.341Z","etag":null,"topics":["css","expressjs","html","javascript","jwt","mysql","nodejs","reactjs","vitejs"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/rtewari056.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-01-24T14:12:28.000Z","updated_at":"2023-01-25T08:28:41.000Z","dependencies_parsed_at":"2023-03-12T23:45:29.806Z","dependency_job_id":null,"html_url":"https://github.com/rtewari056/train-ticket-booking-system","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtewari056%2Ftrain-ticket-booking-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtewari056%2Ftrain-ticket-booking-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtewari056%2Ftrain-ticket-booking-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rtewari056%2Ftrain-ticket-booking-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rtewari056","download_url":"https://codeload.github.com/rtewari056/train-ticket-booking-system/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245568578,"owners_count":20636803,"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":["css","expressjs","html","javascript","jwt","mysql","nodejs","reactjs","vitejs"],"created_at":"2024-12-03T18:48:58.457Z","updated_at":"2025-12-30T19:09:32.324Z","avatar_url":"https://github.com/rtewari056.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n\u003c!-- Title: --\u003e\n  \u003ca href=\"https://spritle.rohittewari.live\" target=\"_blank\"\u003e\n    \u003cimg src=\"./client/public/ticket.png\" height=\"80\" alt=\"Logo\"\u003e\n  \u003c/a\u003e\n\n\u003c!-- Short description: --\u003e\n\u003ch2\u003eTrain Ticket Booking System\u003c/h2\u003e\n\n\u003c!-- Labels: --\u003e\n  \u003cdiv\u003e\n  \u003ca href=\"https://spritle.rohittewari.live\" target=\"_blank\"\u003e\n    \u003cimg src=\"https://img.shields.io/website-up-down-green-red/https/spritle.rohittewari.live.svg\" height=\"20\" alt=\"Website up\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/github/repo-size/rtewari056/train-ticket-booking-system.svg?label=Repo%20size\" height=\"20\" alt=\"Repo size\"\u003e\n  \u003cimg src=\"https://img.shields.io/github/languages/top/rtewari056/train-ticket-booking-system\" height=\"20\" alt=\"GitHub top language\"\u003e\n  \u003c/div\u003e\n\n\u003c/div\u003e\n\n\u003cbr/\u003e\n\n## 🚀 Screenshots\n\nThis application is deployed on DigitalOcean. Please check it out :smile: [here](https://spritle.rohittewari.live).\n\n### Login Page\n![Screenshot1](./screenshots/screenshot1.png)\n\n### Super Admin Registration Page\n![Screenshot2](./screenshots/screenshot2.png)\n\n### Super Admin Dashboard Page\n![Screenshot3](./screenshots/screenshot3.png)\n\n### Profile Page\n![Screenshot4](./screenshots/screenshot4.png)\n\n### Ticket Booking Page\n![Screenshot5](./screenshots/screenshot5.png)\n\n### Agent Registration Page\n![Screenshot5](./screenshots/screenshot6.png)\n\n## 📖 Prerequisites\n\nIn order to run the project you need `node\u003e=16`, `npm\u003e=8` and `MySQL\u003e=8.0` installed on your machine.\n\n## 🚩 Getting Started\n\n### 1. Open MySQL Command Line Client and run the below `SQL commands` defined in `/server/src/db/init.sql` file:\n\n```sql\n-- Create a database named spritle\nCREATE DATABASE IF NOT EXISTS spritle;\n\n-- Use the database to make changes to it\nUSE spritle;\n\n-- Drop table 'user' if exists\nDROP TABLE IF EXISTS user;\n\n-- Create a table named 'user' inside 'spritle' database\nCREATE TABLE user (\n  name VARCHAR(30) NOT NULL,\n  email VARCHAR(45) NOT NULL,\n  mobile VARCHAR(20) NOT NULL UNIQUE,\n  password VARCHAR(100) NOT NULL,\n  birthday DATE NOT NULL,\n  address VARCHAR(200) NOT NULL,\n  profilePic VARCHAR(200) DEFAULT \"https://res.cloudinary.com/devcvus7v/image/upload/v1674454463/ticket_booking_system/avatar.png\",\n  ticket_count INT NOT NULL DEFAULT 0,\n  is_super_admin BOOLEAN DEFAULT 0,\n  is_verified BOOLEAN DEFAULT 0,\n  verification_token VARCHAR(50),\n  PRIMARY KEY (email)\n);\n```\n\n### 2. Now, open a terminal session in project `root` directory and install dependencies:\n\n```bash\nnpm install # Server dependencies\ncd client\nnpm install # Client dependencies\n```\n\n### 3. Rename `.env.example` into `.env` and put all the creadentials:\n```bash\n# In the root directory put your creadentials:\n\n# Server configaration\nPORT=5000\n\n# Token configaration\nACCESS_TOKEN_PRIVATE_KEY=\"YOUR_JWT_SECRET\"\nACCESS_TOKEN_EXPIRE=60 # In mins\n\n# MySQL configaration\nDB_HOST=localhost\nDB_USER=\u003cMYSQL_DATABASE_USER_NAME\u003e\nDB_NAME=spritle\nDB_PORT=3306\nDB_PASSWORD=\u003cMYSQL_DATABASE_PASSWORD\u003e\nDB_CONNECTION_LIMIT=10\n\n# SMTP configaration (Sendinblue Email Service)\nSMTP_HOST=\u003cYOUR_SMTP_SERVER_HOST_NAME\u003e\nSMTP_PORT=587\nSMTP_USER=\u003cYOUR_SMTP_SERVER_USER_NAME\u003e\nSMTP_PASSWORD=\u003cYOUR_SMTP_SERVER_PASSWORD\u003e\nEMAIL_FROM=no-reply@TicketBookingSystem.com # The email address of the sender\n\n# Now go to client folder and put your cloudinary creadentials:\nVITE_CLOUDINARY_CLOUD_NAME=\u003cYOUR_CLOUDINARY_CLOUD_NAME\u003e\nVITE_CLOUDINARY_UPLOAD_PRESET=\u003cYOUR_CLOUDINARY_UPLOAD_PRESET\u003e\n```\n\n\n### 4. Run project:\nIn the project `root` directory, open two terminal sessions and run both commands separately:\n\n```bash\nnpm run client\nnpm run server\n```\n\n### 5. Now, open your browser and go to `http://localhost:5173`\n\n## 👤 Developer\n\n[Rohit Tewari](https://github.com/rtewari056)\n\n## 📬 Contact\n\nIf you want to contact me, you can reach me through below handles.\n\n\u003ca href=\"https://linkedin.com/in/rtewari056\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/LinkedIn-0077B5?style=for-the-badge\u0026logo=linkedin\u0026logoColor=white\" alt=\"LinkedIn\"/\u003e\u003c/a\u003e\n\u003ca href=\"mailto:rtewari056@gmail.com\"\u003e\u003cimg  alt=\"Gmail\" src=\"https://img.shields.io/badge/Gmail-D14836?style=for-the-badge\u0026logo=gmail\u0026logoColor=white\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://twitter.com/rtewari056\" target=\"_blank\"\u003e\u003cimg src=\"https://img.shields.io/badge/Twitter-1DA1F2?style=for-the-badge\u0026logo=twitter\u0026logoColor=white\" alt=\"Twitter\"/\u003e\u003c/a\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtewari056%2Ftrain-ticket-booking-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtewari056%2Ftrain-ticket-booking-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtewari056%2Ftrain-ticket-booking-system/lists"}