🏠 Homepage
bespeak is a REST API based movie ticket booking interface for Zomentum Hiring Challenge. It is built using Node.js
and the database used is SQLite
, It is a fully documented API.
You have to design a REST interface for a movie theatre ticket booking system. It should support the following business cases:
-
An endpoint to book a ticket using a user’s name, phone number, and timings.
-
An endpoint to update a ticket timing.
-
An endpoint to view all the tickets for a particular time.
-
An endpoint to delete a particular ticket.
-
An endpoint to view the user’s details based on the ticket id.
-
Mark a ticket as expired if there is a diff of 8 hours between the ticket timing and current time.
-
Note: For a particular timing, a maximum of 20 tickets can be booked.
-
You should follow the REST paradigm while building your application.
-
You can use any database you like.
-
Create a proper readme for your project.
-
Plus point if you could delete all the tickets which are expired automatically.
-
Plus point if you could write the tests for all the endpoints.
-
Please attach a screenshot of your postman while testing your application.
-
Please avoid plagiarism.
- Node.js installed.
- Fork the repository and clone it to your local machine.
cd
into the directorybespeak
- Install Dependencies with
npm i
- Start the application
node server.js
- The interface will be live at http://localhost:3000.
Field | DataType | AllowNull | Comments |
---|---|---|---|
id | INTEGER | NA | primaryKey |
name | STRING | false | User Name |
number | STRING | false | User Contact Number |
timming | DATE | false | Show Timming |
expired | BOOLEAN | false | Validity |
Home Page |
Book Ticket |
Search Tickets |
Update Ticket |
Get Ticket Details |
Delete Ticket |
Home Page |
Book Ticket |
Search Tickets |
8 Hours Expiration |
Update Ticket |
Get Ticket Details |
Delete Ticket |
👤 Manav Verma
- Github: @vmanav
Give a ⭐️ if this project helped you!