didia / trackdidia

An app to track every thing in life

Home Page:http://trackdidia.appspot.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Trackdidia

Executing mix commands

Because the app is modeled with the Twelve-Factor app architecture, all configs are stored in the environment.

When executing mix command, you should always make sure that the required system env are present. You can use source, nv or a custom l33t bash script.

Every following steps assume you have this kind of system.

Running the app

  1. Create your .env and .env.test config file.
  2. Install dependencies with mix deps.get.
  3. Create and migrate your database with mix ecto.setup
  4. Start Phoenix endpoint with mix phx.server

Environment variables

The application needs the following environment variables:

PORT=
CANONICAL_HOST=

# Secret key. You can use `mix phx.gen.secret` to get one or use any secret string you want
SECRET_KEY_BASE=
SESSION_KEY=

# Url of the database
DATABASE_URL=
# Pool size of the DB connections. You may use 20 connections as a starting point.
DATABASE_POOL_SIZE=

It also supports these optional environment variables:

FORCE_SSL=
BASIC_AUTH_USERNAME=
BASIC_AUTH_PASSWORD=

Linting

Use: mix credo --strict

About

An app to track every thing in life

http://trackdidia.appspot.com


Languages

Language:Elixir 85.4%Language:HTML 9.7%Language:JavaScript 3.4%Language:CSS 1.5%