janczer / crystal-ann

Web site to announce new Crystal projects, blog posts, updates and other work activities

Home Page:https://crystal-ann.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crystal [ANN]

Build Status Dependency Status Amber Framework Gitter

Source code for https://crystal-ann.com.

Setup

  1. Install Crystal
  2. Install Amber Framework
  3. Install Postgres
  4. Create crystal_ann and crystal_ann_test pg databases

Development

  1. Install project dependencies:
$ crystal deps
  1. Run database migrations:
$ amber migrate up
  1. Create seed data:
$ crystal db/seed.cr
  1. 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

About

Web site to announce new Crystal projects, blog posts, updates and other work activities

https://crystal-ann.com

License:MIT License


Languages

Language:CSS 60.6%Language:Crystal 38.7%Language:JavaScript 0.8%