Spring boot with kotlin example. This example will pre-populate the database with a few dummy data.
- JDK 8 or later
- IDE of your choice (IntellijIDEA is preferred)
- Postgresql database up and running
The easiest way is to run a Postgresql instance is through docker:
docker run -d --name postgres -p 5432:5432 -v ~/Docker/postgresql/data:/var/lib/postgresql/data -e POSTGRES_PASSWORD=postgres postgres
Then create a test
database with spring_boot_demo
schema.
- Unit testing