Getting started with Athena
Similar to what we did when creating our CLI application in Chapter 4, Exploring Crystal via Writing a Command-Line Interface, we are going to make use of the crystal init
command to scaffold our application. However, unlike last time, where we scaffolded out a library, we are going to initialize an app. The main reason for this is so that we also get a shard.lock
file to allow for reproducible installs, as we learned in the previous chapter. The full command would end up looking like crystal init app blog
.
Now that we have our application scaffolded, we can go ahead and add Athena as a dependency by adding the following to the shard.yml
file, being sure to run shards install
afterward as well:
dependencies: athena: github: athena-framework/framework version: ~> 0.16.0
And that is all there is to installing Athena. It is designed to be non-intrusive by not requiring any external dependencies...