This repository contains a very simple application (without any unit tests) that provides a REST interface to get / update flight information and stores all flight information in a (in-memory) database.
We use this project as a starting point to create and refactor to a Clean-/Onion-style Architecture.
To run the application, the following should be installed:
- git
- JDK (e.g., AdoptOpenJDK)
- Optionally, Apache Maven
In the command line, run the following:
git clone https://github.com/fortiss-cce/flight-service.git
cd flight-service
./mvnw spring-boot:run
To see and try out the API, go to http://localhost:8080/swagger-ui/
To have a look into the database, go to http://localhost:8080/h2-console/
Login using the following config:
Field | Value |
---|---|
JDBC URL |
jdbc:h2:mem:flightdb |
User name |
sa |
Password |
can be left empty |
The config and initial data can be edited in
application.yml
and data.sql
inside src/main/resources/
.