Install make and docker desktop.
Optional instructions to install make 3.82
- Install through brew
- Install make,
brew install make
To setup and start your Phoenix server run the command make setup
.
This commands runs the following:
- Install javascript dependencies
- Install dependencies with
mix deps.get
- Create and migrate your database with
mix ecto.setup
Now you can visit localhost:4000
from your browser.
Run make start
to start the docker containers and your application.
Run make stop
to stop the docker containers and your application.
Run make help
for all available command options.
- Official website: https://www.phoenixframework.org/
- Guides: https://hexdocs.pm/phoenix/overview.html
- Docs: https://hexdocs.pm/phoenix
- Forum: https://elixirforum.com/c/phoenix-forum
- Source: https://github.com/phoenixframework/phoenix
Run commands on the container.
docker-compose exec web <command>
Example: Enter shell in container
docker-compose exec web sh
Structure of commit messages
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
Example commit message:
Commit message | Release type |
---|---|
fix(pencil): stop graphite breaking when too much pressure applied |
Patch Release |
feat(pencil): add 'graphiteWidth' option |
Feature Release |
perf(pencil): remove graphiteWidth option BREAKING CHANGE: The graphiteWidth option has been removed. The default graphite width of 10mm is always used for performance reasons. |
Breaking Release |
perf!: remove graphiteWidth option |
Breaking Release |
perf(pencil)!: remove graphiteWidth option |
Breaking Release |
The commit contains the following structural elements, to communicate intent to the consumers of your library:
- fix: a commit of the type fix patches a bug in your codebase (this correlates with PATCH in Semantic Versioning).
- feat: a commit of the type feat introduces a new feature to the codebase (this correlates with MINOR in Semantic Versioning).
- BREAKING CHANGE: a commit that has a footer BREAKING CHANGE:, or appends a ! after the type/scope, introduces a breaking API change (correlating with MAJOR in Semantic Versioning).
Commit messages must be one of the following:
build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)
chore: updating grunt tasks, version release etc; no production code change
ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)
docs: Documentation only changes
feat: A new feature
fix: A bug fix
perf: A code change that improves performance
refactor: A code change that neither fixes a bug nor adds a feature
style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)
test: Adding missing tests or correcting existing tests
Reference: