An open API service indexing awesome lists of open source software.

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

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=
```