Welcome to the air company management system.
This is my implementation of the Synergy Way test case.
- Programming Language: Java
- Application Configuration: Spring Boot, Spring, Maven
- Accessing Data Spring Data: JPA, Hibernate, MySQL
- Web Development: Spring MVC, Servlets, Tomcat
- Documentation:Swagger
- Version Control: Git
-
Air Company Controller:
- POST: /api/air_companies - Create a new air company
- GET: /api/air_companies - Retrieve all air companies
- GET: /api/air_companies/{id} - Retrieve an air companies by id
- PUT: /api/air_companies/{id} - Update an air company by id
- DELETE: /api/air_companies/{id} - Delete an air company by id
-
Airplane Controller
- POST: /api/airplanes - Create a new airplane
- PUT: /api/airplanes/{id} - Move airplane between companies
-
Flight Controller:
- POST: /api/flights - Create a new flight
- GET: /api/flights/active - Retrieve all active flight and started more than 24 hours ago
- GET: api/flights/status?status={status}&CompanyName={CompanyName} - Retrieve all flight by status and air company name
- PUT: /api/flights/{id}?newStatus={newStatus} - Update flight status
Moreover, you can try sending requests to the endpoints using Postman by clicking here. It's a collection of prepared requests where you can test functionality of the controllers.
- Clone repository: clone from the console with the command:
git clone https://github.com/AgroFix/air-companies-management-system.git
- Check database setup: Customize the database settings in the application.properties file.
- Build and run project: mvn spring-boot:run
If you prefer to run the air company management system in a Docker container using Docker Compose, follow these steps:
-
Clone repository: Clone the repository from the console with the command:
git clone https://github.com/AgroFix/air-companies-management-system.git
-
Check Docker Compose file: Ensure that the docker-compose.yml file in the root of the project is configured appropriately. You can customize environment variables, ports, and other settings in this file.
-
Build and run the project: Execute the following commands in the project root directory:
docker-compose build docker-compose up
Thank you for reading to the end, Good Luck!!! 🌈