Blog
A simple CRUD application for learning purposes using phoenix and ecto.
Installation
- Clone the repo with
git clone git@github.com:marcioj/elixir_blog.git cd elixir_blog- Install dependencies with
mix deps.get - Create the development database with
mix ecto.create Repo - Create the development database tables with
mix ecto.migrate Repo - Start Phoenix router with
mix phoenix.server
Now you can visit localhost:4000 from your browser.
Automatic code reloading
- Install the
nodejs package(or your system's equivalent) if you don't have it already - Install npm dependencies with
npm install - Install
inotify-toolswith the package manager of your preference:
# Example(Arch Linux):
sudo pacman -Sy --needed inotify-tools
Running tests
- Create the test database with
MIX_ENV=test mix ecto.create Repo - Create the test database tables with
MIX_ENV=test mix ecto.migrate Repo - Run the tests with
mix test
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Commit your changes (
git commit -am 'Add some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request