https://github.com/dreamingechoes/phoenix-example-app
Example of Phoenix application.
https://github.com/dreamingechoes/phoenix-example-app
elixir elixir-lang elixir-phoenix example-app phoenix-framework
Last synced: about 1 year ago
JSON representation
Example of Phoenix application.
- Host: GitHub
- URL: https://github.com/dreamingechoes/phoenix-example-app
- Owner: dreamingechoes
- License: mit
- Created: 2018-06-02T09:38:15.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-06-04T21:59:48.000Z (almost 8 years ago)
- Last Synced: 2025-01-28T01:44:04.161Z (about 1 year ago)
- Topics: elixir, elixir-lang, elixir-phoenix, example-app, phoenix-framework
- Language: Elixir
- Size: 79.1 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# PhoenixExampleApp
Example of Phoenix application.
## Setup development environment with Docker
This project is Docker friendly from day one. To start working on it:
* Setup the web container with `docker-compose build web`.
* Install dependencies with `docker-compose run web mix deps.get`.
* Create your database with `docker-compose run web mix ecto.create`.
* Migrate your database with `docker-compose run web mix ecto.migrate`.
* Install Node.js dependencies with `docker-compose run web bash -c "cd assets; npm install"`.
* Start the application with `docker-compose up`.
## Setup testing environment with Docker
This step assumes you already followed instructions from previous paragraph.
* Create your testing database with `docker-compose run web env MIX_ENV=test mix ecto.create`.
* Migrate your testing database with `docker-compose run web env MIX_ENV=test mix ecto.migrate`.
* Run the test suite with `docker-compose run web env MIX_ENV=test mix test`.
* Run the test suite with coverage report on `cover` folder with: `docker-compose run web env MIX_ENV=test mix coveralls.html`.
----------------------------
This project was developed by [dreamingechoes](https://github.com/dreamingechoes).
It adheres to its [code of conduct](https://github.com/dreamingechoes/base/blob/master/files/CODE_OF_CONDUCT.md) and
[contributing guidelines](https://github.com/dreamingechoes/base/blob/master/files/CONTRIBUTING.md), and uses an equivalent [license](https://github.com/dreamingechoes/base/blob/master/files/LICENSE).