This project is a learning project I built to explore the requirements and functionality of a bus ticket booking platform. It includes multiple API sections, such as /admins, which contains all admin-related APIs, /users, which handles user and authentication APIs, /bookings, which covers all the bus seats bookings APIs. For more detailed information refer to the Postman API documentation.
This project runs on the latest versions of these listed dependency and their versions listed in the project's package.json file.
- Package Manager: Yarn
- Backend: TypeScript, NestJs
- Database: PrismaORM, PostgreSQL
- Cloud Storage: Cloudinary
- Data Validation: Zod
- Email Sender: Nodemailer
- PDF Builder: PDFKit
- Encoding & Decoding: Argon
- Authentication: Session based JWT
git clone https://github.com/nia3zzz/bus-ticket-booking-portal
cd bus-ticket-booking-portalyarn install- Copy all the variables from the
.env.sample, paste them in.envfile after creating one and supply all the required information.
- After providing database credentials run the following command:
npx prisma migrate devyarn run start:devAs a reference guide for the project I had built some documentation for the project which is included in this README file.
-
The prototyping, testing and documentation of all the APIs in this project were done by me in Postman. This documentation will include the request format and expected response, with all possible error responses explained. The link is given below: