https://github.com/tanmayvaij/ticket-booking
This is small part of working of a ticket booking application, having two features. 1. Fetch all available seats. 2. book a seat if it is available, else it will throw error message
https://github.com/tanmayvaij/ticket-booking
express expressjs node nodejs rest-api restful-api typescript
Last synced: about 2 months ago
JSON representation
This is small part of working of a ticket booking application, having two features. 1. Fetch all available seats. 2. book a seat if it is available, else it will throw error message
- Host: GitHub
- URL: https://github.com/tanmayvaij/ticket-booking
- Owner: tanmayvaij
- Created: 2022-12-29T06:17:09.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-12-29T17:39:43.000Z (over 3 years ago)
- Last Synced: 2025-01-21T21:47:40.747Z (over 1 year ago)
- Topics: express, expressjs, node, nodejs, rest-api, restful-api, typescript
- Language: TypeScript
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Ticket Booking Application Backend ( Node.Js )
### This is a small part of ticket booking application currently having only two features
1. fetch all available seats
2. book a seat if it is available
Enter the below command to install all dependencies
```sh
npm install
```
Enter the below command to start the production build
```sh
npm start
```
Enter the below command to start the development server
```sh
npm run dev
```
Enter the below command to build a production version
```sh
npm run build
```
The below api is used to fetch all available seats
```sh
/api/booking/fetchseats
```
The below api is used to book an available seats. Replace < seatNo > with a number.
```sh
/api/booking/bookseats?seatNo=
```