https://github.com/benslabbert/redis-trains
https://github.com/benslabbert/redis-trains
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/benslabbert/redis-trains
- Owner: BenSlabbert
- Created: 2022-04-03T09:55:44.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-12-11T22:34:36.000Z (over 1 year ago)
- Last Synced: 2025-02-12T15:48:12.508Z (over 1 year ago)
- Language: Go
- Size: 149 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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).