Giter Club home page Giter Club logo

spring-flight-management's Introduction

Air Companies Management System

Description

  • Crud operations for Air company.
  • Endpoint to move airplanes between companies
  • Endpoint to find all Air Company Flight by status
  • Endpoint to find all Flights in ACTIVE status and started more than 24 hours ago.
  • Endpoint to add new flight
  • Endpoint to change Flight status
  • Endpoint to find all Flights in COMPLETED status and diff between started and ended time.
  • Endpoint to get all flights by status and Air Company name.
  • Possibility to update Air Company by name.
  • Opportunity to audit a data.
  • Global Exception handling.
  • Simple implementation of Spring AOP for logging and tracking.
  • Air Company Web integration test.

Technologies

Java 17, Spring Boot, Spring Data, Spring AOP, Spring HATEOAS, PostgreSQL, H2, Flyway, Rest API, Docker, Git, Lombok, Log4J2, Jasypt, JCache.

Requirements

Use features of Java 8 + such Streams, Optional. Dockerize an application by creating a multi-staged build based on Alpine.

How To Start

Clone the application

Create a PostgreSQL database

$ create database flight_db

Change PostgreSQL username and password as per your PostgreSQL installation locally.

  • Edit spring.datasource.username and spring.datasource.password properties as per your PostgreSQL installation in src/main/resources/application.properties

  • You can avoid encrypting of personal data in src/main/application.properties.

Run the app

./mvnw spring-boot:run (Maven Wrapper) # For UNIX/Linux based operating systems
mvnw.cmd spring-boot:run (Maven Wrapper) # For Windows based operating systems
  • The server will start on server.port:8080 and will create the tables for you using migrations.

Run an app in a container

  • Firstly you need to build a simple base image
$ docker build -t <YourName> .
  • Finally you can start a local container using your personal environment.
$ docker run --net=host <IMAGE ID>

spring-flight-management's People

Contributors

yevr19 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.