🏹 Adjustments to the Regular Right of Way
asdf
- Add
erlang
,elixir
, andnodejs
plugins - Install additional requirements for
nodejs
plugin
- Add
direnv
- PostgreSQL 15
- Can be run as a container via docker-compose by running
docker-compose up -d
in this repository (seedocker-compose.yml
) - Using Homebrew:
brew install postgresql@15
- Can be run as a container via docker-compose by running
- OpenRouteService
- Can use https://api.openrouteservice.org/ with an API key requested through their console
- Or the docker-compose setup with Docker Desktop alternative, no API key needed
asdf install
mix deps.get
mix esbuild.install
npm install --prefix assets
direnv allow
cp .envrc.example .envrc
- Update
.envrc
with your local Postgres username and password - Update
.envrc
with your AWS credentials or ensure they are available in your shell - Update
.envrc
with OpenRouteService setup - Update
.envrc
with the Arrow Dev Keycloak client secret (found in 1Password) mix ecto.setup
brew install chromedriver
- Add your Arrow API key from https://arrow.mbta.com/mytoken to
.envrc
mix copy_db
to seed your database
- Run the app:
mix phx.server
(visit http://localhost:4000/) - Elixir:
mix test
— run testsmix test.integration
— run integration testsmix dialyzer
— check typespecsmix format
— format codemix credo
— lint code
- JavaScript:
cd assets
and...npm run test
— run testsnpm run test -- --watch
— run tests continuously for changed codenpm run format
— format codenpm run lint
— lint code (and fix automatically if possible)