This project is made for Udaan Developer Challenge.
This project contains the API of the Ticket Booking Platform 🎫.
NodeJS with Express is used as framework for the development of the application.
Database: MySql
ORM used: Sequelize
-
In the console, download a copy of the repo by running
git clone https://github.com/gauravano/Ticket-Booking-Platform---Udaan-dev-challenge.git
. -
Enter the new Ticket-Booking-Platform---Udaan-dev-challenge directory with
cd Ticket-Booking-Platform---Udaan-dev-challenge
.
3.[Optional] For syncing the MySql database locally:
- Uncomment these lines https://github.com/gauravano/Ticket-Booking-Platform---Udaan-dev- challenge/blob/e408e6f8dec13bdc16885d4b85c41bc558a08e33/db.js#L14-L22
- Comment these lines https://github.com/gauravano/Ticket-Booking-Platform---Udaan-dev- challenge/blob/e408e6f8dec13bdc16885d4b85c41bc558a08e33/db.js#L2-L11
- Copy the below lines in terminal after running
sudo mysql
in terminal:
create database ticketing;
create user gaurav_ticketing identified by 'Ticketing 1';
use ticketing;
grant all privileges on ticketing to gaurav_ticketing;
grant all privileges on ticketing.* to gaurav_ticketing;
- Run
npm start
ornode server
for a running development server. Navigate tohttp://localhost:9090/
.
Run npm start
or node server
for a running development server. Navigate to http://localhost:9090/
.
The Booking platform API is live at https://ticketing-udaan.herokuapp.com/ .
API for posting screen(movie) details
API for reserving movie tickets
API for fetching reserved/unreserved seats
If you have any question regarding this project feel free to open a new issue. Thanks!