To get a local copy up and running follow these simple steps.
NodeJS, MongoDB is installed on your machine
- Clone the project
$ git clone https://github.com/yadav-Keshav/ticket_booking
- Install NPM packages
$ yarn install or $ npm install
- Start the API
$ yarn dev or $ npm run dev
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)