Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mbta/orbit


https://github.com/mbta/orbit

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# Orbit 🪐

[Glides](https://github.com/mbta/glides) for Heavy Rail

## Pre-reqs

- Homebrew ([installation directions](https://brew.sh/))
- 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`
- `mise` or `asdf`:
- `mise`:
- `curl https://mise.run | sh` or `brew install mise`
- `mise install`
- `asdf`:
- `brew install asdf`
- You may need to run `asdf plugin add` some of `erlang`, `elixir`, or `nodejs`.
- `asdf install`

## Set up

- `bin/setup` (rerun after any dependencies are updated)

Run the server with `mix phx.server`.

Now you can visit [`localhost:4001`](http://localhost:4001) from your browser.

## Tests

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`](bin/test), [`mix.exs`](mix.exs), and [`package.json`](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".

## Docker

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:`.