blog

Version, currently master branch1 version
  • master branchlatestJul 30, 2017

github.com/eliasjpr/amber-jennnifer-app-example

This is an example Crystal Amber App with Jennifer Active Record ORM

4 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  blog:
    github: eliasjpr/amber-jennnifer-app-example
    branch: master

master is a branch, not a release, so this tracks it rather than pinning a version.

Then run:

shards install

shard.yml

Crystal
0.23.0
License
MIT
Author
Amber

Dependencies

Runtime Dependencies

  • pg*github: will/crystal-pg
  • sam*github: imdrasil/sam.cr
  • amber~> 0.1.4github: Amber-Crystal/amber
  • jennifer*github: imdrasil/jennifer.cr
  • quartz-mailer*github: amber-crystal/quartz-mailer, branch: master

README

blog

Your description here

Installation

Create a pg database called demo and configure the config/database.yml to provide the credentials to access the table.

Then:

shards update
amber migrate up

Usage

To run the demo:

crystal build src/blog.cr
./blog

Docker and Docker Compose

This will start an instance of postgres, migrate the database, run the specs, and launch the site at http://localhost:3000

docker-compose up -d

To view the logs:

docker-compose logs -f

Note: The Docker images are compatible with Heroku.

Contributing

  1. Fork it ( https://github.com/[your-github-name]/your_project/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

Contributors