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

https://github.com/benslabbert/redis-trains


https://github.com/benslabbert/redis-trains

Last synced: about 1 year ago
JSON representation

Awesome Lists containing this project

README

          

# Redis Trains

Using redis streams and the graph module to track trains in a simulation.

See: https://www.youtube.com/watch?v=odhL_bP9XTQ as the inspiration of this project.

## Hooks

The [hooks](./hooks) dir contains git hook scripts.

Make sure to run:
```shell
git config core.hooksPath hooks
```

So that `git` uses the [hooks](./hooks) dir for the got hooks.

## fmt

Go code uses `make fmt` for formatting, while SQL files uses `pg_format`, see [pre-commit](./hooks/pre-commit).