Skip to content

butcherless/incubator

Repository files navigation

Project Incubator

Note
Research project through small concept tests

Continuous Integration & QA

Service Link Status

Github-Actions

Build CircleCI

Scala CI

Codecov

Codecov coverage

Codecov coverage

Neo4j Docker server

start database:
docker run --name neo4j -d --rm --publish=7474:7474 --publish=7687:7687 --volume=$HOME/neo4j/data:/data \--volume=$HOME/neo4j/logs:/logs neo4j:latest
stop database:
docker stop neo4j

Sbt tool

Build command
sbt clean assembly
Run oneOnly (name includes substring)
repository/testOnly com.cmartin.learn.SlickSpec -- -z populate
Debug command
sbt clean test --debug
Coverage report
sbt xcoverage
report

target/{module}/scala-2.13/scoverage-report/index.html

Subprojects

Repository

Model

Model diagram

Entity model diagram

Entities
Aircraft

An airplane capable of flight to transport people and cargo.

associations

An Aircraft belongs to an Airline.

Table 1. properties
Name Description

typeCode

code indicating the type of Aircraft, B788

registration

international code identifying the Aircraft, EC-MIG

Airline

An organization providing a regular public service of air transport on one or more routes.

Table 2. properties
Name Description

name

the commercial name of the Airline, Iberia

foundationDate

the date on which its activity began, 1927-06-28

Airport

A complex of runways and buildings for the take-off, landing, and maintenance of civil aircraft, with facilities for passengers.

associations

An Airport belongs to an Country.

Table 3. properties
Name Description

name

the international name of the Airport, Tenerife Norte

iataCode

the Airport code for the International Air Transport Association, MAD

icaoCode

the Airport code for the International Civil Aviation Organization, LEBL

Country

A nation with its own government, occupying a particular territory.

Table 4. properties
Name Description

code

international two letters code, es, uk, de, us, etc.

Flight

An act of flying; a journey made through the air or in space, especially a timetabled journey made by an airline.

associations

A Flight runs through a Route.

Table 5. properties
Name Description

code

main Airline commercial code, UX9117

alias

alternative Airline commercial code, AEA9117

schedDeparture

scheduled departure local time, 07:05

schedArrival

scheduled arrival local time, 08:55

Journey

An act of travelling from one place to another.

associations

A Journey runs through a Flight.

A Journey takes place inside an Aircraft.

Table 6. properties
Name Description

departureDate

real time for departure, 15:23

arrivalDate

real time for arrival, 19:41

Route

A way or course taken in getting from a starting point to a destination.

associations

A Route has a starting Airport and a destination Airport.

Table 7. properties
Name Description

distance

number of nautical miles between the two Airports, 957 nm.

Web

Check web server and API:

  • change to project web

  • start web server using the reStart command of the Revolver plugin

  • open a console and run the command: curl -vX GET "http://localhost:8080/api/v1.0/health" -H "accept: application/json"

  • open a browser and access to the URL: http://localhost:8080/api/v1.0/docs

  • check log file: web/target/appFile.log

TODO

Finders:

About

Project for business and language research.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published