Questions and answers
- What further work could be done?
Further work could include adding a Continuous Integration (CI) pipeline so that whenever we commit code, the application gets pulled from source control, built, and all tests run. We could consider deployment and automation of that. One example might be to package up the Wordz application and the Postgres database as a Docker image. It would be good to add database schema automation, using a tool such as Flyway.
- Could we replace the Molecule library and use something else for our web endpoint?
Yes. As the web endpoint sits in our adapter layer of the hexagonal architecture, it does not affect the core functionality in the domain model. Any suitable web framework could be used.