webapp
Steps to run this repository -
- Download the repository.
- Download and install latest version of MongoDB from "https://www.mongodb.com/download-center?jmp=nav#community".
- Run "./mongod" and "./mongo" command through terminal to run MongoDB database.
- Open terminal and after reaching the downloaded repository through the terminal, run "npm install" to install all the dependencies.
- Run "nodemon" command on terminal to run the webapp.
- The UI can be seen on localhost at port 2000.
Steps to store flight details -
- Open Postman app and type the url like this : "http://localhost:2000/api/storeDetails?flightId=SIA215"
- The relevant details will be stored in "trip" collection in "test" database.