Skip to content

spacexcorp/elixir-bank

Repository files navigation

Elixir Bank

Requirements

  • Elixir 1.9.X-otp-22
  • Erlang 22.1.X

Starting the Service

  • 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.

Running seeds and having mocked data

  • Run mix ecto.seed and it will run the script in priv/seeds.exs.

Running Code Analysis Tools and formatting

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

Running Tests

Unit Tests

  • Use mix test to run unit tests.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages