a.k.a. T-Alerts. Enables MBTA riders to subscribe to notifications for service disruptions.
- MBTA API key (get one here)
- Note: This key must have its version set to
2021-01-09
- You may need to request an increased rate limit if you get errors during the first app startup; 2000 requests per minute should be enough
- Note: This key must have its version set to
- PostgreSQL 13 (using Homebrew:
brew install postgresql@13
)- You will need Postgres client tools in your PATH; if using Homebrew and you
get an error about missing tools, use
brew link postgresql@13
- You will need Postgres client tools in your PATH; if using Homebrew and you
get an error about missing tools, use
- Google Chrome
- Chromedriver (using Homebrew:
brew install --cask chromedriver
) asdf
with plugins:elixir
,erlang
,nodejs
direnv
(optional, for auto-loading env vars)
asdf install
mix deps.get
npm install --prefix apps/concierge_site/assets
cat .envrc.example | sed -e "s/__username__/$(logname)/g" > .envrc
- In
.envrc
: Fill inAPI_KEY=
with the API key you obtained above direnv allow
mix ecto.setup
MIX_ENV=test mix ecto.setup
The above assumes you have a PostgreSQL user with the same name as your OS user
(logname
), which should be the default with a Homebrew install. Otherwise, you
may need to adjust the username in .envrc
.
If not using direnv
, you can instead source .envrc
to perform a one-time
export of the environment variables into your current shell session.
mix test
mix phx.server
- Visit http://localhost:4005/
We run the app on AWS: see docs/aws.md
for deployment guides.