Integrating the application
In this section, we will bring together the components of our test-driven application. We will form a microservice that runs our endpoint and provides the frontend web interface to our service. It will use the Postgres database for storage.
We need to write a short main() method to link together the major components of our code. This will involve creating concrete objects and injecting dependencies into constructors. The main() method exists on class WordzApplication, which is the entry point to our fully integrated web service:
package com.wordz;
import com.wordz.adapters.api.WordzEndpoint;
import com.wordz.adapters.db.GameRepositoryPostgres;
import com.wordz.adapters.db.WordRepositoryPostgres;
import com.wordz.domain.Wordz;
public class WordzApplication {
    public static void main(String[] args) {
        var config = new WordzConfiguration(args);
      &...