项目作者: crystal-community

项目描述 :
Web site to announce new Crystal projects, blog posts, updates and other work activities
高级语言: CSS
项目地址: git://github.com/crystal-community/crystal-ann.git
创建时间: 2017-07-09T17:00:13Z
项目社区:https://github.com/crystal-community/crystal-ann

开源协议:MIT License

下载


Crystal [ANN]

GitHub release
Amber Framework
Twitter Follow




Notice

Crystal [ANN] is no longer maintained. Website was taken down as of March 2025.

The announcement data has been exported and preserved in the db/data folder:

  • announcements.json.gz: JSON format of all announcements
  • announcements.sql.gz: SQL dump of the announcements table

This repository remains available for historical reference and educational purposes.

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:
  1. $ shards install
  1. Run database migrations:
  1. $ amber db migrate
  1. Seed data:
  1. $ amber db seed
  1. Start app and watch for source changes:
  1. $ amber w

Testing

Migrate test database and run specs:

  1. $ MICRATE_RUN_UP=true crystal spec

Docker

Run the app using docker-compose

  1. docker-compose up

Deployment to Heroku

  1. $ heroku create app-name --buildpack https://github.com/crystal-lang/heroku-buildpack-crystal.git
  2. $ heroku buildpacks:add https://github.com/veelenga/heroku-buildpack-sidekiq.cr
  3. $ git push heroku master

And set environment variables with heroku config:set VAR=VAL:

  1. AMBER_ENV
  2. AMBER_SESSION_SECRET
  3. MICRATE_RUN_UP
  4. REDIS_PROVIDER
  5. GITHUB_ID
  6. GITHUB_SECRET
  7. TWITTER_CONSUMER_KEY
  8. TWITTER_CONSUMER_SECRET
  9. TWITTER_ACCESS_TOKEN
  10. TWITTER_ACCESS_TOKEN_SECRET
  11. TWITTER_OAUTH_CONSUMER_KEY
  12. TWITTER_OAUTH_CONSUMER_SECRET

Contributors