shards-info
shards-info
View of all repositories on GitHub that have Crystal code in them.
Installation
- Install Crystal
- Clone this repository
- Install dependencies
shards install
- Rename
.env.example
to.env
, and setGITHUB_USER
andGITHUB_KEY
- Run it
source .env && crystal src/shards-info.cr
Development
Install sentry to build/runs application, watches files, and rebuilds/restarts app on file changes.
source .env && sentry
Specs
source .env && export KEMAL_ENV=test && crystal spec
Deploy
Get started by deploying this service to heroku.
heroku buildpacks:add https://github.com/crystal-lang/heroku-buildpack-crystal.git
heroku buildpacks:add --index 1 heroku-community/apt
And set environment variables with heroku config:set VAR=VAL
:
GITHUB_USER
GITHUB_KEY
SENTRY_DSN
Go to https://github.com/settings/tokens and generate new token (select repo
scope).
On Heroku you must enable Dyno Metadata for Sentry's release detection to work correctly.
Run:
heroku labs:enable runtime-dyno-metadata
Built With
- Crystal language
- Kemal - Web microframework for Crystal
Contributing
- Fork it (https://github.com/mamantoha/shards-info/fork)
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create a new Pull Request
Contributors
- mamantoha Anton Maminov - creator, maintainer