Skip to content

markevich/co2_offset

Repository files navigation

Travis Coverage Status


CO2 offset

Offset your carbon footpring

Install development environment

  1. Install ASDF.
  2. 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"
  3. Install Elixir ASDF plugin
    • asdf plugin-add elixir https://github.com/asdf-vm/asdf-elixir.git
  4. 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
  5. CD into project folder
  6. Install Erlang:
    • asdf install
  7. Install Elixir:
    • asdf install
  8. Install Nodejs:
    • asdf install
  9. Reopen your shell.
  10. Copy example configs:
    • cp config/dev.secret.exs.example config/dev.secret.exs
    • cp config/test.secret.exs.example config/test.secret.exs
  11. Install Phoenix 1.4.9.
    • mix archive.install hex phx_new 1.4.9
  12. Create a db-user for aplication in psql console:
    • CREATE ROLE username LOGIN PASSWORD 'password' SUPERUSER;
  13. Configure DB parameters in
    • config/dev.secret.exs
    • config/test.secret.exs
  14. Run:
    • mix deps.get
    • mix deps.compile
    • mix ecto.setup
    • cd assets && npm install && node node_modules/webpack/bin/webpack.js --mode development && cd ../
  15. Configure git hooks:
    • chmod -v -R +x .githooks
    • git config core.hooksPath .githooks
  16. Run the server: mix phx.server.
  17. Go to localhost:4000

About

Offset your carbon footpring

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •