• Stars
    star
    526
  • Rank 84,247 (Top 2 %)
  • Language
    Ruby
  • License
    MIT License
  • Created almost 16 years ago
  • Updated almost 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A base Sinatra application template with DataMapper, and RSpec. Just fork and build.

Sinatra Application Template

A base Sinatra application template. Just fork and build. Yay! Includes Bundler, DataMapper, and RSpec, all ready to go.

Configuration

Dependencies and all configuration is done in environment.rb. Your database is also set up here. DataMapper will use sqlite3 by default. Tests use the sqlite3-memory adapter (no configuration needed).

Add your controller actions in application.rb. Views for these actions are placed in the views directory. Static files, including a stock stylesheet, go in the public directory. Models go in the lib directory and are auto-loaded.

Environment variables that you want to expose to your application can be added in .env

Testing

Add your specs in spec; just require spec_helper.rb to pre-configure the test environment. A number of samples are provided (including a sample model, which can be removed). To run the specs:

bundle exec rake spec

Getting Started

bundle install
bundle exec foreman start

Extras

We've included a handy console script that fires up irb with your environment loaded. To load it, use the Rake task:

bundle exec rake console

Thanks

This project includes contributions from several awesome developers.

(c) 2015 Nick Plante. This code is distributed under the MIT license.

More Repositories

1

resque_mailer

Rails plugin for sending asynchronous email with ActionMailer and Resque
Ruby
605
star
2

retweet

A simple Twitter application template, built in Ruby with Sinatra and DataMapper
JavaScript
72
star
3

toopaste

Simple (Tiny) Pastie Clone Using Sinatra & DataMapper
Ruby
62
star
4

mogofeed

A planet-style feed aggregator built in Ruby with Sinatra and DataMapper
Ruby
48
star
5

rails-angular-jasmine

Rails + Angular + Jasmine example app
Ruby
37
star
6

leap-js-examples

JavaScript examples for Leap Motion
JavaScript
34
star
7

isbn_validation

ISBN Validation for ActiveRecord Models
Ruby
30
star
8

open_id_simplified

Simplified OpenID Authentication Plugin for Ruby on Rails
Ruby
22
star
9

rdocinfo

New development has moved to http://github.com/lsegal/rubydoc.info
JavaScript
18
star
10

database_form

Database Form Page Extension for Radiant CMS
Ruby
17
star
11

bitbank

Easy to use Ruby interface to the Bitcoind JSON-RPC API
Ruby
16
star
12

transdmin

A free web admin template from the nice folks at Perspectived.com
15
star
13

protoform

A Mirah Android app generator - also check out Pindah http://github.com/mirah/pindah
Ruby
14
star
14

upordown

Simple Android demo app developed using Mirah + Pindah
Mirah
13
star
15

radiant-upcoming-events-extension

Simple administrative interface and tags to manage upcoming events in the Radiant CMS
Ruby
11
star
16

radiant-flash-gallery-extension

Interface with SlideShowPro (SSP) and easily create Flash-based media galleries for your Radiant site
Ruby
9
star
17

dialtone

A minimalist Ruby web application framework used to demonstrate Rack usage
Ruby
8
star
18

radiant-staff-profiles-extension

Simple staff or member profiles for Radiant CMS
Ruby
6
star
19

sprinkle-stack

A sample Sprinkle stack for Rails. An example. Most likely out of date ;-).
Ruby
6
star
20

gitserved

you got (git) served.
Ruby
5
star
21

rubygames

Ruby development exercises and puzzles
Ruby
4
star
22

leaptheremin.js

Leap Motion + Web Audio API theremin
JavaScript
4
star
23

voting

Open Vote Web Service
Ruby
3
star
24

hardhat-vue-template

Vue + Ethereum app template for building robust web3 applications.
TypeScript
3
star
25

redis_store_jr

Simple Redis Cache Store for Rails
Ruby
3
star
26

coin_market

Fetch current market data for top cryptocurrencies using the CoinMarketCap API
Ruby
3
star
27

mephisto-cutline-theme

A port of the cutline blog theme for Mephisto (Liquid)
2
star
28

zapnap.github.com

I care because you do
HTML
2
star
29

gitrac

Minimalist issue tracking system for Git (work in progress)
2
star
30

presentations

Some presentations (check scribd / slideshare for more)
2
star
31

resque_mailer_test

Example Rails project using Resque::Mailer
Ruby
2
star
32

carnivore-actionscript

Carnivore ActionScript 2.0 Client Library
2
star
33

serpentor

Simple SERP / search engine keyword rank checker
Ruby
2
star
34

jquery-countdown

Just another jQuery countdown plugin (with a particularly inventive name)
JavaScript
1
star
35

holidaytweets

Simple Twitter aggregator app for Calypso holiday party
JavaScript
1
star
36

rack_hoptoad

middleware for posting exceptions to http://hoptoadapp.com
Ruby
1
star