Offset your carbon footpring
- Install ASDF.
- Install Erlang ASDF plugin
- Install Erlang Requirements
asdf plugin-add erlang https://github.com/asdf-vm/asdf-erlang.git
export KERL_CONFIGURE_OPTIONS="--disable-debug --without-javac"
- Install Elixir ASDF plugin
asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
- Install Nodejs ASDF plugin
- Install Nodejs Requirements
asdf plugin-add nodejs https://github.com/asdf-vm/asdf-nodejs.git
bash ~/.asdf/plugins/nodejs/bin/import-release-team-keyring
- CD into project folder
- Install Erlang:
asdf install
- Install Elixir:
asdf install
- Install Nodejs:
asdf install
- Reopen your shell.
- Copy example configs:
cp config/dev.secret.exs.example config/dev.secret.exs
cp config/test.secret.exs.example config/test.secret.exs
- Install Phoenix 1.4.9.
mix archive.install hex phx_new 1.4.9
- Create a db-user for aplication in
psql
console:CREATE ROLE username LOGIN PASSWORD 'password' SUPERUSER;
- Configure DB parameters in
config/dev.secret.exs
config/test.secret.exs
- Run:
mix deps.get
mix deps.compile
mix ecto.setup
cd assets && npm install && node node_modules/webpack/bin/webpack.js --mode development && cd ../
- Configure git hooks:
chmod -v -R +x .githooks
git config core.hooksPath .githooks
- Run the server:
mix phx.server
. - Go to
localhost:4000