kemal_and_lsutra_sample_app

Version, currently master branch1 version
  • master branchlatestFeb 17, 2026

github.com/mamantoha/kemal_and_lustra_sample_app

No description declared in shard.yml.

1 stars
0 dependents
License: MIT

Installation

# Add this to your shard.yml
dependencies:
  kemal_and_lsutra_sample_app:
    github: mamantoha/kemal_and_lustra_sample_app
    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
1.15.0
License
MIT
Author
Anton Maminov
Targets
  • app from src/app.cr
  • db_cli from src/db_cli.cr

Dependencies

Runtime Dependencies

  • kilt*github: jeromegn/kilt
  • kemal*github: kemalcr/kemal
  • slang*github: jeromegn/slang, branch: master
  • lustra*github: crystal-garage/lustra, branch: main
  • kemal-kilt*github: crystal-garage/kemal-kilt

README

Kemal and Lustra ORM Sample Application

It's an example of traditional blog-like application with post objects, which have a title and content.

  • A post is associated to an author via a foreign key.
  • A post itself can have multiple tags.
  • A post has self-referential association to define leaders/followers.

Full text search for posts based on title, content, author's name and tags.

database structure

Development

psql -c 'DROP DATABASE IF EXISTS kemal_and_lustra_sample_app;' -U postgres
psql -c 'CREATE DATABASE kemal_and_lustra_sample_app;' -U postgres
crystal ./src/db_cli.cr migrate
crystal ./src/db_cli.cr migrate seed
pg_dump kemal_and_lustra_sample_app > src/db/structure.sql
crystal ./src/app.cr

Open http://localhost:3000/?query=poney%20crystal

web page

Contributing

  1. Fork it (https://github.com/mamantoha/kemal_and_lustra_sample_app/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