Hello. This is the backend of a Flight Booking Website developed using SpringBoot (using CBSE approach) and MongoDB.
To run this repository:
- Clone this repository
- Create a .env file in root directory and put your MongoDB uri inside like this
MONGO_URI=<your_mongo_uri>
- Run
mvn clean install
- Run FlightHubApplication
If you wanna see it in action with frontend, I made a frontend repo at here. Run intructions will be there.
Also, preferrably don't change the server port or else it won't work at the frontend side.
There is a csv file for the flights dataset if you wanna import it To import csv to MongoDB (atlas):
- Download the MongoDB Database Tools here
- Unzip and add the bin folder to PATH
- Open Command Prompt
- To make sure it's correctly set up can run
mongoimport --version
- Now to import, you need to have Mongo connection
- run
mongoimport --uri <CONNECTION_STRING> --db <DATABASE_NAME> --collection <COLLECTION_NAME> --type csv --file <FILE_PATH> --headerline