Skip to content

osasto-kuikka/kuikka-website

Repository files navigation

Build Status Style status Coverage Status Issues License

Setup Development environment

Required:

Windows

Install with Chocolatey

choco install -y erlang elixir nodejs VisualCppBuildTools

Postgresql needs to be installed separately as chocolatey repository does not have 9.5 version!

Linux

  • Arch
    • pacman -S install erlang elixir nodejs postgresql
  • Fedora 25
    • dnf install -y erlang nodejs postgresql-server
    • Elixir 1.4.4 needs to be installed separatele as fedora repository only has 1.3.1 which is not supported

Project setup

mix setup (Setup everything with one command)
mix setup.min (Get dependencies and compile)
mix npm.install (Install npm packages to frontend)
mix npm.build (Build minified javascript)
mix ecto.setup (Setup database)
mix ecto.reset (Reset database)

Running the application

iex -S mix (Start console for program)
mix run --no-halt (Run program)

Running test

mix test (Run unit tests)
mix lint (Run linter)