This guide assumes you Elixir and Erlang set up on your machine If not follow the installation instructions for your system.
- Clone the development branch using
git clone
repo - Follow this guide to setup postgres on your system if you haven't already
- From the downloaded
qb_backend
folder run the following - Run
mix deps.get
to install dependecies - Run
mix ecto.create
to create the application database - Run
mix ecto.migrate
to run the migrations on the created database - Run
npm install
in theassets
directory to install javascript assets - Run
MIX_ENV=test mix test
this should exit with a status of 0 - If you intend on contributing code, set up your local githooks by copying the files in the
/hooks
folder into the.git
foldercd hooks && cp * ../.git/hooks && cd ..
- Make the precommit hook executable using
chmod +x .git/hooks/pre-commit
- Make the precommit hook executable using
chmod +x .git/hooks/pre-push
- Run
mix phx.server
and the application should be available at localhost:4000