Server-side options

The generator will now start asking us about the server side options that we need. Let's go through them one by one:

We already saw how these defer in the previous chapter, and for our use case, let's choose JWT authentication:

If your use case requires working with persisted data in development and if the model is not going to change often, then you could also choose MySQL for development as it would give you a faster startup time. This is because the embedded H2 DB doesn't need to be initialized, but the downside is each time you make schema changes or recreate entities, you would have to update the DB using generated liquibase diff changelogs manually, or wipe the DB manually and start over again. With an embedded H2 DB, you could run ./gradlew clean to wipe it.

Let's keep it simple and choose WebSockets using Spring WebSocket: