blog

Version, currently 0.1.02 versions

github.com/kemalyst/blog-kemalyst

Blogging site built using Kemalyst

5 stars
0 dependents
License: MIT

Nothing has been indexed for 0.1.0 yet. The tag is recorded, its shard.yml has not been read, so the manifest and dependency list below are empty because they are unknown rather than because they are absent.

Installation

# Add this to your shard.yml
dependencies:
  blog:
    github: kemalyst/blog-kemalyst
    version: ~> 0.1.0

Then run:

shards install

shard.yml

No shard.yml has been indexed for 0.1.0. You can read it on the repository.

Dependencies

Unknown: the shard.yml for this version has not been read yet.

README

This README is the one indexed from the repository at its latest ref, not from the tag for this version.

Blog using Crystal and Kemalyst

Build Status

This is a sample application that shows how to build a crud application. This also provides an example of securing specific pages and leveraging the session to maintain authorization.

Installation

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

shards update
crystal db/migrate.cr

Usage

To run the sample blog:

crystal build src/app.cr
./app

username: admin password: password

Docker and Docker Compose

The Docker scripts are compatible with Heroku Cedar Images.

You can skip the above and run:

docker-compose up -d

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

To view the logs:

docker-compose logs -f

Contributing

  1. Fork it ( https://github.com/[your-github-name]/kemalyst-blog/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