A basic Sinatra application template using Sequel, SQLite, and minitest specs.
Features:
- clear folder structure with db, lib, views, test, ...
- Rake tasks for database setup (schema, seed data)
- testing with in-memory SQLite database
-
Install dependencies:
bundle install
-
Setup database:
bundle exec rake db:setup
-
Run tests:
bundle exec rake
-
Launch server:
bundle exec rake serve
or
bundle exec rackup config.ru
-
Open site at
localhost:9292
Copyright © 2016-2024 Marcus Stollsteimer
This is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 3 or later (GPLv3+), see www.gnu.org/licenses/gpl.html. There is NO WARRANTY, to the extent permitted by law.