The code in this repo has been developed for a blog post.
Before you try to start the app, please install and start CouchDB.
Then, to start your Phoenix app:
- Install dependencies with
mix deps.get
- In case you want to seed the database, run
mix run priv/repo/seeds.exs
The seeding will run against the dev schema unless you specify another environment like so:MIX_ENV=prod mix run priv/repo/seeds.exs
In you want to execute the tests on your machine, please seed a test database:MIX_ENV=test mix run priv/repo/seeds.exs
- Start Phoenix endpoint with
mix phoenix.server
Now you can visit localhost:4000
from your browser.