Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

NodeJS, MongoDB is installed on your machine

Installation

  1. Clone the project
$ git clone https://github.com/yadav-Keshav/ticket_booking
  1. Install NPM packages
$ yarn install or $ npm install
  1. Start the API
$ yarn dev or $ npm run dev

Setup ENV

At first create a .env file into your root directory and use all the provided variables.

  • PORT=8000 (use any port no)
  • DB_URI=mongodb+srv:username:password@cluster0.2jqjb3f.mongodb.net/?retryWrites=true&w=majority (replace username and password with your own username & password)
  • SALT_ROUND=10 (SALT_ROUND should be minimum 10)
  • JWT_SECRET=wXlf2n3VHwAoa5KqpTUUDz9+1GOYp3Zo/iVZND9hXck= (JWT_SECRET should be min 32char long)