Coder Social home page Coder Social logo

rojberr / smartaviator Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 2.5 MB

Spring boot application with data saving accuracy up to 1 milisecond

Home Page: https://www.no-website-for-now.com

Java 96.91% Dockerfile 3.09%
docker hateoas java postgresql postgresql-database spring springboot

smartaviator's Introduction

smartaviator

This is a simple Spring Boot application

Allowing you to search for flights and luggage in a prefilled test database! ๐Ÿ›ซ ๐Ÿ‘จ๐Ÿธ ๐Ÿ›ฌ

Airplane and Jets Flying in the Blue Sky

Usage: ๐Ÿ’ก

  1. Build the project f.e. using gradle wrapper:
./gradlew build -x test
  1. Start the application. Start up the postgres database container and smartaviator container (assuming your have docker installed on your system). Run ๐Ÿƒ :
docker-compose up
  1. Populate the database with exemplary data saved in .json files by sending:
POST localhost:8080/init  
  1. Test โœˆ๏ธthe application by sending GET requests to cargo with either ...
  • to get cargo, baggage and total weight of searched flight:
GET localhost:8080/cargo?flightNumber=2741&date=2018-03-31T06:52:28Z
  • to search with iata code:
GET localhost:8080/cargo?iata=LUX&date=2018-03-31T06:52:28Z

Prometeus endpoints

This API includes 2 endpoints for Prometheus:

  • localhost:9000/actuator/metrics to navigate under metrics,
  • localhost:9000/actuator/prometeus with format that Prometheus is expecting and scrapes from. (remember to configure the Prometheus accordingly) Those endpoints will show f.e. how many request are taken and how long do they last, and if they were successful.

Requirements for this API ๐Ÿ“‹

You can find the requirements in PDF file located in project root folder.

./docu.pdf

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.