Project

frankly

0.01
No release in over 3 years
Low commit activity in last 3 years
Generate a modern Sinatra + ActiveRecord starter app with sensible defaults.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

>= 2.4
~> 3.10
~> 13.0
~> 3.13

Runtime

~> 1.3
 Project Readme

Frankly

frankly is a small Thor-based Sinatra scaffold generator.

It creates a PostgreSQL + ActiveRecord app with a minimal RSpec setup.

Requirements

  • Ruby 3.1+
  • PostgreSQL
  • Bundler

Installation

gem install frankly

Usage

frankly my_app

Common options:

frankly my_app --bundle
frankly my_app --skip-git
  • --bundle: runs bundle install in the generated app
  • --skip-git: skips git init

What It Generates

my_app/
  app.rb
  config.ru
  Gemfile
  Rakefile
  config/
    environment.rb
    database.rb
  app/views/
    layout.erb
    index.erb
  spec/
    spec_helper.rb
    requests/app_spec.rb

Name and DB Naming Behavior

  • The generated folder keeps your requested name (downcased), including hyphens.
  • Default database names are PostgreSQL-friendly and use underscores.
  • Example: frankly my-app creates my-app/, with default DB names like my_app_development.

Generated App Quickstart

cd my_app
bundle install
bundle exec rackup
bundle exec bin/console

Open http://localhost:9292.

Troubleshooting

  • PostgreSQL not running:
    • Start Postgres and set DATABASE_URL, then run bundle exec rake db:create db:migrate.
  • Port already in use (9292):
    • Run on another port, e.g. bundle exec rackup -p 9393.

Development (this gem)

bin/setup
bundle exec rspec

License

MIT. See LICENSE.txt.