A lightweight Rack framework built around Railway Oriented Programming, dry-rb, falcon, and Sequel.
- Docker
Use the published base image to scaffold a new project:
docker run --rm \
-v $(pwd):/app \
mrvold/rivulet:latest \
new blogThe image is pulled automatically on first run if you don't have it locally.
To include a database, pass --with-db:
docker run --rm \
-v $(pwd):/app \
mrvold/rivulet:latest \
new blog --with-db=postgresSupported adapters: postgres, sqlite, mysql. Omit the flag for no database.
The generated project includes a Dockerfile and a docker-compose.yml.
When created with --with-db=postgres or --with-db=mysql, compose also runs
a database service. On first run, compose builds the application image from
the base image:
docker compose upRebuild after changing the application's Gemfile:
docker compose up --buildThe application will be available at:
http://localhost:9292
Create a migration:
bundle exec rivulet g migration create_usersRun migrations:
bundle exec rivulet db migrateShow all available commands:
bundle exec rivulet --helpShow generator options:
bundle exec rivulet g --help- Architecture & Design —
docs/architecture.md
Apache 2.0
