View Source Installation
In order to build a static website with Griffin, we will need a few dependencies installed in our Operating System:
- the Erlang VM and the Elixir programming language
- and other optional packages.
Please take a look at this list and make sure to install anything necessary for your system. Having dependencies installed in advance can prevent frustrating problems later on.
elixir-1-13-or-later
Elixir 1.13 or later
Griffin is written in Elixir, and our application code will also be written in Elixir. To install Elixir, please see the official Installation Page for help.
If we have just installed Elixir for the first time, we will need to install the Hex package manager as well. Hex is necessary to get a Griffin website running (by installing dependencies) and to install any extra dependencies we might need along the way.
Here's the command to install Hex (If you have Hex already installed, it will upgrade Hex to the latest version):
$ mix local.hex
griffin
Griffin
To check that we are on Elixir 1.13 or later, run:
elixir -v
Erlang/OTP 24 [erts-12.0.1] [source] [64-bit] [smp:16:16] [ds:16:16:10] [async-threads:1] [jit]
Elixir 1.13.2
Once we have Elixir, we are ready to install the Griffin application generator:
$ mix archive.install hex grf_new
The grf.new
generator is now available to generate new applications in the next guide, called Up and Running. The flags mentioned below are command line options to the generator; see all available options by calling mix help grf.new
.
summary
Summary
At the end of this section, you must have installed Elixir, Hex, and Griffin. Now that we have everything installed, let's create our first Griffin website and get up and running.