Open-source Elixir boilerplate app
https://github.com/mirego/elixir-boilerplate
After building dozens of products with Elixir since 2014, we open-source the boilerplate app we use to kickstart all of our projects!
This boilerplate comes with batteries included, you’ll find:
- The battle-tested production-ready web framework Phoenix
- Popular databases integration with Ecto
- Tests with ExUnit, with coverage
- Linting with Credo
- Formatting with mix format
- A Distillery setup with Docker integration
- Translations powered by Gettext
- Dialyzer
- Useful utilities for standard web server: HTTP Basic Auth, canonical host
- Error reporting with Sentry
- A clean and useful README.md template
Usage
-
Clone this project (
git clone https://github.com/mirego/elixir-boilerplate.git
) -
Delete the internal Git directory (
rm -rf .git
) -
Run the boilerplate setup script (
./boilerplate-setup.sh YourProjectName
) -
Create a new Git repository (
git init
) -
Create the initial Git commit (
git commit -a -m “Initial commit”
)
Read next Elixir: Gracefully Shutting Down GenServer Process [Video]