Airline reservation system is a full-stack Java application. Technologies that use to project;
- Java/MVN + Spring boot + MVC Architecture
- HTML, Tailwind CSS, JS
- Spring Security, Auth0
- Intellij IDEA, VS Code
- MongoDB
- Docker
- Git/GitHub
- Clone this repo to your local machine using
git clone https://github.com/MadushaS/airline-reservation.git
- Connect database
- install mongodb on your system
- Start the server, run mongosh on command-line
- create a databese
- get connection string of your database.
- put connection string infront of
spring.data.mongodb.uri
insrc/resources/application.properties
- Run
AirlineReservationApplication.java
insrc/main/java/AirlineReservationApplication.java
This sample demonstrates:
- Adding authentication with Auth0 to a Spring Boot 2 MVC application
- Accessing profile information of the authenticated user
- Only allowing authenticated users to access certain resources
- On the Auth0 Dashboard create a new Application of type Regular Web Application.
- On the Settings tab of your application, add the URL
http://localhost:3000/login/oauth2/code/auth0
to the Allowed Callback URLs field. - On the Settings tab of your application, add the URL
http://localhost:3000/
to the Allowed Logout URLs field. - Save the changes to your application settings. Don't close this page; you'll need some of the settings when configuring the application below.
Copy src/main/resources/application.yml.
to src/main/resources/application.yml
:
cp src/main/resources/application.yml.example src/main/resources/application.yml
Set the application values in the src/main/resources/application.yml
file to the values of your Auth0 application.
client-id: {YOUR-CLIENT-ID}
client-secret: {YOUR-CLIENT-SECRET}
issuer-uri: https://{YOUR AUTH0 DOMAIN}/
Open a terminal, go to the project root directory and run the following command:
Linux or MacOS:
./gradlew bootRun
Windows:
gradlew.bat bootRun
The application will be accessible at http://localhost:3000.
In order to run the example with Docker you need to have docker
installed.
You also need to set the client values as explained previously.
Execute the command to run Docker for your environment:
Linux or MacOS:
sh exec.sh
Windows:
.\exec.ps1
The application will be accessible at http://localhost:3000.
If you have found a bug or if you have a feature request, please report them at this repository issues section. Please do not report security vulnerabilities on the public GitHub issue tracker. The Responsible Disclosure Program details the procedure for disclosing security issues.
👤 Madusha Sandaruwan
- Github: MadushaS
- LinkedIn: madusha_sandaruwan
👤 Yasindu Sanjeewa
- Github: YSanj98
- LinkedIn: yasindu_sanjeewa
👤 Sachin Mihiranga
- Github: SachinMihiranga
- LinkedIn: sachin_mihiranga
👤 Omali Fernando
- Github: Omali99
- LinkedIn: omali_fernando
👤 Pivindi Nimanga
- Github: nimanga
- LinkedIn: pivindi_nimanga
👤 Dulana Dewmin
- Github: DulanaDewmin
- LinkedIn: dulana_dewmin