/juicebox

Our elixir jukebox

Primary LanguageElixir

JuiceboxWeb

Build Status

First install Elixir:

brew update
brew install elixir

To start your Phoenix app:

  1. Install dependencies with mix deps.get
  2. Create and migrate your database with mix ecto.create && mix ecto.migrate
  3. Install npm dependencies with npm install
  4. Start Phoenix endpoint with mix phoenix.server

Now you can visit localhost:4000 from your browser.

Ready to run in production? Please check our deployment guides.

Deploy to heroku

The only setup is that you need to install two buildpacks:

heroku buildpacks:add heroku/nodejs
heroku buildpacks:add heroku/heroku-buildpack-elixir

Running tests

phantomjs --wd
mix test

Learn more

Troubleshooting

If you run into trouble with

$ mix ecto.create

run the commands

  1. CREATE ROLE postgres LOGIN CREATEDB;
  2. ALTER ROLE postgres LOGIN;
  3. ALTER ROLE postgres CREATEDB;