sample backend using Micronaut, Micronaut Data JDBC, and Flyway DB
- java 25
- execute
./mvnw mn:run - db migration is executed automatically including seed data (disable this on
application.ymlif not needed) - call the api endpoint
curl http://localhost:8080/persons
- make sure main dependencies are installed
- execute
./mvnw test
---
config:
layout: dagre
look: handDrawn
title: ERD
---
erDiagram
person {
int id PK ""
String last_name ""
String first_name ""
String country_code FK ""
timestamp updated_at ""
timestamp created_at ""
}
country {
String code PK ""
String name ""
int phone ""
String symbol ""
String capital ""
String currency ""
String continent_code FK ""
String alpha_3 ""
timestamp updated_at ""
timestamp created_at ""
}
continent {
String code PK ""
String name ""
}
person}|--||country:"residesIn"
country}|--||continent:"belongsTo"