Templates for common files/configs in Elixir/Phoenix projects.
- Create a new repository based on this repository:
-
Go to this repository's page, click on the
Use this templatebutton and follow instructions.OR
-
With GitHub's CLI, run
gh repo create NEW_REPOSITORY_NAME --template=dmarcoux/elixir_templates.
-
Search for
CHANGEMEin the newly created repository to adapt it to your needs. -
For a Phoenix application, generate it with:
-
Set up development environment:
mise install
-
Install phx_new:
mix archive.install hex phx_new 1.8.3
Omit the version (
1.8.3) to install latest version ofphx_new. -
Generate the Phoenix application within the current directory:
mix phx.new . --app awesome_name
-
Rely on Mise to install tools, set environment variables, and run tasks. Refer to mise.toml for details. The Mise documentation is there to help you get started, there's no need to repeat it all here. It boils down to activating Mise (optional), installing tools, and running tasks.
Install tools with:
mise installSee available tasks with:
mise runContinuous Integration with GitHub Actions
Linters, tests and more. Details under .github/workflows.
Automated dependency updates. Details in the config.