Note
|
Research project through small concept tests |
Service | Link | Status |
---|---|---|
Github-Actions |
||
Codecov |
docker run --name neo4j -d --rm --publish=7474:7474 --publish=7687:7687 --volume=$HOME/neo4j/data:/data \--volume=$HOME/neo4j/logs:/logs neo4j:latest
docker stop neo4j
sbt clean assembly
repository/testOnly com.cmartin.learn.SlickSpec -- -z populate
http://www.scalatest.org/user_guide/using_the_runner#selectingSuitesAndTests
sbt clean test --debug
sbt xcoverage
- report
-
target/{module}/scala-2.13/scoverage-report/index.html
-
Essential Slick 3: http://books.underscore.io/essential-slick/essential-slick-3.html
-
Pawel Dolega - A gentle introduction to Slick 3: https://www.youtube.com/watch?v=t1EbXHVJXfs
- Aircraft
-
An airplane capable of flight to transport people and cargo.
An Aircraft belongs to an Airline.
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.
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.
An Airport belongs to an Country.
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.
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.
A Flight runs through a Route.
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.
A Journey runs through a Flight.
A Journey takes place inside an Aircraft.
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.
A Route has a starting Airport and a destination Airport.
Name | Description |
---|---|
distance |
number of nautical miles between the two Airports, 957 nm. |
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
-
Thanks to FlightRadar24: https://www.flightradar24.com/
-
Slick configuration: Logging http://slick.lightbend.com/doc/3.3.1/config.html
-
https://github.com/gonmarques/slick-repo (amazing solution)
-
https://techblog.agrimap.com/slick-3-data-access-patterns-788472e3c77
-
Scala neo4j Neotypes: https://github.com/neotypes/neotypes
-
Spring data neo4j: https://docs.spring.io/spring-data/neo4j/docs/5.0.5.RELEASE/reference/html/
-
Example: https://github.com/bijukunjummen/spring-boot-scala-web
-
The great Josh Long: https://github.com/spring-tips/scala/blob/master/src/main/scala/tweets/tweets.scala
-
https://spring.io/blog/2017/10/11/spring-tips-bootiful-reactive-scala
-
https://docs.spring.io/spring-data/rest/docs/3.0.6.RELEASE/reference/html/
-
https://dzone.com/articles/getting-started-neo4j-with-scala-annbspintroductio
-
https://github.com/spring-guides/gs-accessing-neo4j-data-rest