- Elixir 1.9.X-otp-22
- Erlang 22.1.X
- Install dependencies with
mix deps.get; - Start a local docker environment for the database with
docker-compose up -d; - Create and migrate your database with
mix ecto.setup; - Start Phoenix endpoint with
mix phx.server.
Now you can call routes on localhost:4000.
- Run
mix ecto.seedand it will run the script in priv/seeds.exs.
We format the codebase using mix format and verify if everything is correct with it.
We use Credo and Dialyxir to verify code integrity.
The following command should not return errors for builds to pass on CI:
mix credo && mix dialyzer && mix sobelow --config && mix format --check-formatted- Use
mix testto run unit tests.