Skip to content

quii/ruby-sinatra-capybara-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ruby Sinatra Cabybara boilerplate

Build Status

Boilerplate for writing a webserver with Sinatra, tested with rspec and Capybara

Prerequisites

  • RVM (or using Ruby 2.6)
  • $ rvm use 2.6.3
  • Bundler, for managing gems ($ gem install bundler)
  • Rake, for managing tasks ($ gem install rake)

Get started

  • Clone it
  • $ bundle install

Test

$ rake

Run

$ rake web

Watching for changes

I like using entr (brew install entr) because it's a language-agnostic way of restarting a process rather than faffing around with nodemon or whatever. More unix-y.

$ ag --ruby -l | entr -r -c rake web

or for tests

$ ag --ruby -l | entr -r -c rake

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages