base
is similar to a component
except for two things:interface
.interface
makes bases less composable compared to components. This is okay because they serve a different purpose which is to be a bridge between the real world and the components the base delegates to. This gives us the modularity and structure we need to build simple and understandable services and tools../deps.edn
with our newly created base:-main
function that will later be called from the command line. The (:gen-class)
statement tells the compiler to generate a Java class for us when the code is compiled.deps.edn
file was also created with this content:user
config file, and will soon be needed when we create a project that includes it.