UnstopBackend is a backend service for a seat reservation system. It provides endpoints for managing seat bookings and retrieving seat information.
To install UnstopBackend, follow these steps:
- Clone the repository:
git clone https://github.com/sum1275/UnstopBackend.git
To set up the project in your local environment, configure the .env
file as follows:
-
Create a file named
.env
in the root directory of the project. -
Add the following content to the
.env
file:# Environment variables for development DB_DEV_URL=mongodb://localhost:27017/ReserveSpotDB DEV_PORT=8084 NODE_ENV=development
The application provides the following endpoints:
-
Get All Seats:
- Method:
GET
- Endpoint:
http://localhost:8084/allseats
- Method:
-
Book a Seat:
- Method:
POST
- Endpoint:
http://localhost:8084/bookseat
- Request Body:
{ "numberOfSeats": 7 }
- Method:
- Daily Seat Reset Cron Job: In the future, we plan to implement a cron job within the application that will automatically reset and empty all seat bookings at the end of each day. This feature aims to streamline the seat management process, ensuring that seat availability is refreshed daily, providing a fair and efficient booking experience for all users.
This feature is in the planning stage and will be a key update to further improve the functionality and user experience of the UnstopBackend service.
Contributions to UnstopBackend are welcome.