No description or website provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
ansible
assets
config
lib
priv
rel
scripts
test
.credo.exs
.gitignore
.nvmrc
.tool-versions
.tool-versions-e
Dockerfile
README.md
docker-compose.yml
mix.exs
mix.lock

README.md

ElixirTw

Ebert travis-ci

To start your Phoenix app:

  • Install dependencies with mix deps.get
    • If you want to use Docker for PostgreSQL in local development
    • Start PostgreSQL server with docker-compose up -d
    • Override default usename for Phoenix to log in PostgreSQL with export PGUSER=postgres
  • Create and migrate your database with mix ecto.create && mix ecto.migrate
  • Install Node.js dependencies with npm install
  • Start Phoenix endpoint with mix phoenix.server

Now you can visit localhost:4000 from your browser.

Testing

This project includes test.watch, credo, and dialyxer. You can run the test simply with: mix test.watch

to run type checking with dialyxer: mix dialyzer --plt first, then simply mix dialyzer after.

Building a release

  • docker build -t elixir_tw .
  • docker run -it -d elixir_tw:latest bash
  • docker cp <IMAGE_ID>:/app/rel/elixir_tw/releases ./rel/docker_rel
  • docker rm -f <IMAGE_ID>

Learn more