fortunate is a bare-bones, simple blog app. It is written using Lucky.
crystal run tasks.cr -- db.migrate. Optionally run
crystal run tasks.cr -- db.create_sample_seedsto create sample data including an initial user (firstname.lastname@example.org:password).
crystal build --release src/start_server.cr
See Lucky's deployment guides for some additional / alternative ideas to get up and running.
fortunate can be configured using environment variables.
|Variable name||Default Value||Description|
|LUCKY_ENV||development||Lucky's environment. Set this to
|DATABASE_URL||"postgres:///fortunate_<environment>"||The PostgreSQL-URL used to connect to your database|
|SECRET_KEY_BASE||none||Set this to a random string. You can use
|APP_DOMAIN||none||Set this to the base url of your domain, e.g.
|FORTUNATE_SITE_NAME||"My Blog"||The name of your blog|
lucky devto start the app
You can learn about Lucky from the Lucky Guides.
Bug reports and pull requests are welcome on GitHub at https://github.com/oneiros/fortunate.
The project is available as open source under the terms of the MIT License. See LICENSE.txt.