Skip to content

Latest commit

 

History

History

04-loosely-coupled-app-layer

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Loosely Coupled with Application Layer

The final example is based on the loosely coupled service with code generation.

The last iteration moves application logic out of the HTTP handlers to a separate layer.

Generating code

Generating both MySQL and OpenAPI code happens automatically when starting docker-compose.

To regenerate the models, you can restart the containers:

docker-compose restart sqlboiler
docker-compose restart oapi-codegen

See details in docker/sqlboiler and docker/oapi-codegen.