Current section
Files
Jump to
Current section
Files
priv/template/README.md.eex
# <%= @module %>
<%= if @docker do %>
- Start your service with `docker-compose up`
- Run project test suite with `docker-compose run <%= @name %> mix test`
- Start IEx session in running service
# Find a container id using docker ps
docker exec -it <container-id> bash
# In container
iex --sname debug --remsh app@$(hostname)
Alternatively, you can still run the project directly, without docker:
<%= if @ecto do %>- Start just the database service with `docker-compose up db`
<% end %>- Install dependencies with `mix deps.get`<%= if @ecto do %>
- prepare the database using `mix do ecto.create, ecto.migrate`
<% end %>- Start your service with `iex -S mix`
<% else %>
- Install dependencies with `mix deps.get`<%= if @ecto do %>
- make sure your postgres db is running and configured correctly in `config/config.exs`
- prepare the database using `mix do ecto.create, ecto.migrate`
<% end %>- Start your service with `iex -S mix`
- Run project test suite with `mix test`
<% end %>
## Learn more
- Raxx documentation: https://hexdocs.pm/raxx
- Slack channel: https://elixir-lang.slack.com/messages/C56H3TBH8/