fortunate
Version, currently master branch1 version
- master branchlatestFeb 26, 2022
github.com/oneiros/fortunate
A bare-bones blogging application
Installation
# Add this to your shard.yml
dependencies:
fortunate:
github: oneiros/fortunate
branch: mastermaster is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
0.31.1- Author
- David Roetzel
- Target
fortunatefrom src/fortunate.cr
Dependencies
Runtime Dependencies
README
fortunate
fortunate is a bare-bones, simple blog app. It is written using Lucky.
Installation
- Follow Lucky's installation instructions to get the required depencies.
- Create a PostgreSQL database
fortunate_production. - Clone the git repo from https://github.com/oneiros/fortunate
- Run
yarn installandshards install - Migrate the database with
crystal run tasks.cr -- db.migrate. Optionally runcrystal run tasks.cr -- db.create_sample_seedsto create sample data including an initial user (admin@example.com:password). - Compile assets with
yarn prod - Compile fortunate with
crystal build --release src/start_server.cr
See Lucky's deployment guides for some additional / alternative ideas to get up and running.
Configuration
fortunate can be configured using environment variables.
| Variable name | Default Value | Description |
|---|---|---|
| LUCKY_ENV | development | Lucky's environment. Set this to production for live installations. The default is fine if you want to improve the code. |
| 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 crystal run tasks.cr -- gen.secret_key to generate one. |
| APP_DOMAIN | none | Set this to the base url of your domain, e.g. https://blog.example.com |
| FORTUNATE_SITE_NAME | "My Blog" | The name of your blog |
Development
- Install required dependencies
- Clone the git repo from https://github.com/oneiros/fortunate
- Run
script/setup - Run
lucky devto start the app
You can learn about Lucky from the Lucky Guides.
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/oneiros/fortunate.
License
The project is available as open source under the terms of the MIT License. See LICENSE.txt.
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
master- Seen
- Feb 26, 2022
- Crystal
0.31.1- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/oneiros/fortunate
Metadata
- Created
- Aug 13, 2026
- Updated
- Nov 10, 2026
- Synced
- Nov 4, 2026
- Versions
- 1