Skip to content

cesarfigueroa/acme

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Acme

Acme (as in Acme Inc., because I refuse to call it “Sinatra Template”) is an opinionated template for Sinatra. It makes a handful of assumptions about what one would use in a real world Sinatra project, such as using Sequel (with PostgreSQL) and ERB (via Erubis, a faster implementation of ERB).

Installation

via Git

git clone [email protected]:cesarfigueroa/acme.git
rm .git/

Alternatively, you can download a zip of the repository, and skip the steps above. Inside the repository folder, you can remove all the .gitkeep files by executing the following:

find . -type f -name ".gitkeep" -exec rm {} \;

And finally:

bundle install

Done.

Conventions

Acme has a handful of conventions, many of which were borrowed from Rails. The less Rails-like ones are listed below.

  • Sinatra conditions are stored in app/helpers/conditions
  • Routes are added in config/routes.rb
  • Middleware is configured in config/middleware.rb

About

An opinionated Sinatra template.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages