rensPols / ex-dock

An ecommerce platform build with Vert.x Kotlin and Docker
Apache License 2.0
3 stars 0 forks source link

Database template #45

Closed Moltensnor closed 4 days ago

Moltensnor commented 2 weeks ago

Adds the template tables to the JDBC. Also adds the service verticle to verticles.

Template JDBC

Standard JDBC verticle to handle the requests to the template and block table in the database.

Service verticle

Verticle for all other service task that need to be done. This only runs 1 worker and doesn't need to run multiple. This can't be changed by now and probably also doesn't need to be changed later. The ServiceData.kt file holds all data that the verticle needs. For now it only has a list with templates that get inserted in the database if it is not already in. This throws a custom PopulateException when there is an error with population. This has the reason that otherwise the users might not be able to do anything if there is no data at the start.

Depends on #43