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 clonerepo - Follow this guide to setup postgres on your system if you haven't already
- From the downloaded
qb_backendfolder run the following - Run
mix deps.getto install dependecies - Run
mix ecto.createto create the application database - Run
mix ecto.migrateto run the migrations on the created database - Run
npm installin theassetsdirectory to install javascript assets - Run
MIX_ENV=test mix testthis should exit with a status of 0 - If you intend on contributing code, set up your local githooks by copying the files in the
/hooksfolder into the.gitfoldercd 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.serverand the application should be available at localhost:4000