Skip to content

Latest commit

 

History

History

kousa

Kousa - Elixir Backend

Running Tests

mix test

Coverage report: mix coveralls.html. Pretty information outputted into cover/excoveralls.html

Running as Development

  1. Install dependencies with mix deps.get
  2. Create a GitHub, Twitter and Discord OAuth application and paste credentials in .envrc
  3. Compile and build kousa mix do compile, release
  4. Run kousa _build/dev/rel/kousa/bin/kousa start

Autoformatting

mix format

Style ENFORCEMENT

mix credo --strict

for Elixir NOOBs:

General Elixir conventions:

  • A function that ends in ! can crash on documented error conditions.
  • is_... should only be used for guards; most boolean functions should be ...? functions
  • fetch... should return {:ok, value} or :error
  • fetch...! should return value or crash if not present
  • get... should return value or nil

snake_case not camelCase