Crystal [ANN]
Source code for https://crystal-ann.com.
Setup
- Install Crystal
- Install Amber Framework
- Install Postgres
- Create
crystal_ann
andcrystal_ann_test
pg databases
Development
- Install project dependencies:
$ crystal deps
- Run database migrations:
$ amber migrate up
- Create seed data:
$ crystal db/seed.cr
- Start app and watch for source changes:
$ amber watch
Testing
Migrate test database and run specs:
$ MICRATE_RUN_UP=true crystal spec
Deployment to Heroku
$ heroku create app-name --buildpack https://github.com/crystal-lang/heroku-buildpack-crystal.git
$ heroku buildpacks:add https://github.com/veelenga/heroku-buildpack-sidekiq.cr
$ git push heroku master
And set environment variables with heroku config:set VAR=VAL
:
AMBER_ENV
AMBER_SESSION_SECRET
MICRATE_RUN_UP
REDIS_PROVIDER
GITHUB_ID
GITHUB_SECRET
TWITTER_CONSUMER_KEY
TWITTER_CONSUMER_SECRET
TWITTER_ACCESS_TOKEN
TWITTER_ACCESS_TOKEN_SECRET
Contributors
- veelenga V. Elenhaupt - creator, maintainer
- hugoabonizio Hugo Abonizio - contributor, maintainer