Skip to content

A base Sinatra application template with Active Record, PG, RSpec, Haml, Sass, Bourbon, and Neat. Just fork and build.

License

Notifications You must be signed in to change notification settings

elle/sinatra-template

 
 

Repository files navigation

Sinatra Application Template

A base Sinatra application template. Just fork and build. Yay! Includes Active Record, PG, RSpec, Haml, Sass, Bourbon, Neat, all ready to go.

Getting Started

Set up your database credentials in ‘config/database.yml`

Then run:

rake db:create
rake db:migrate

Define environment variables in ‘.env`

cp .env.example .env

bundle install
bundle exec foreman start

And visit ‘localhost:5000/`

Rake Tasks

You can check what rake tasks are available by running:

bundle exec rake -T

Testing

rake db:migrate RACK_ENV=test
./bin/rspec

About

A base Sinatra application template with Active Record, PG, RSpec, Haml, Sass, Bourbon, and Neat. Just fork and build.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • CSS 80.5%
  • Ruby 18.1%
  • HTML 1.4%