Glides for Heavy Rail
- Homebrew (installation directions)
- Postgres:
brew install postgresql
- Brew may ask you to upgrade your database upon installation:
brew postgresql-upgrade-database
- Start Postgres with
brew services start postgresql
- If this is the first time you've used it, you may need to create a database. Run
createdb
- Brew may ask you to upgrade your database upon installation:
mise
orasdf
:mise
:curl https://mise.run | sh
orbrew install mise
mise install
asdf
:brew install asdf
- You may need to run
asdf plugin add
some oferlang
,elixir
, ornodejs
. asdf install
bin/setup
(rerun after any dependencies are updated)
Run the server with mix phx.server
.
Now you can visit localhost:4001
from your browser.
Run bin/test
to run all backend and frontend test suites.
Run mix test test/path/to/file_test.exs
or npm run test:jest -- js/path/to/file.test.ts
to run a specific unit test.
See bin/test
, mix.exs
, and package.json
for other test commands.
To see code coverage, run mix test --cover
or npm run test:jest -- --coverage
. These generate lcov.info
files which can be viewed with tools like the VSCode extension "Coverage Gutters".
To run the Docker container locally, run docker compose up --build
.
Find what port the server is using with docker compose ps
,
and then visit localhost:<port>
.