All Projects → zapnap → Sinatra Template

zapnap / Sinatra Template

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

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Sinatra Template

Xorstr
heavily vectorized c++17 compile time string encryption.
Stars: ✭ 435 (-18.54%)
Mutual labels:  template
Template Python
A template for new Python libraries.
Stars: ✭ 479 (-10.3%)
Mutual labels:  template
Jekflix Template
A Jekyll theme inspired by Netflix. 🎬
Stars: ✭ 504 (-5.62%)
Mutual labels:  template
Nestjs Bff
A full-stack TypeScript solution, and starter project. Includes an API, CLI, and example client webapp. Features include production grade logging, authorization, authentication, MongoDB migrations, and end-to-end testing.
Stars: ✭ 450 (-15.73%)
Mutual labels:  template
Fasttemplate
Simple and fast template engine for Go
Stars: ✭ 470 (-11.99%)
Mutual labels:  template
Sing App Vue Dashboard
Vue.js admin dashboard template built with Bootstrap 4.5
Stars: ✭ 482 (-9.74%)
Mutual labels:  template
Async sinatra
A plugin for Sinatra to provide a DSL extension for using Thin for asynchronous responses
Stars: ✭ 434 (-18.73%)
Mutual labels:  sinatra
Yaac Another Awesome Cv
YAAC: Another Awesome CV is a template using Font Awesome and Adobe Source Font.
Stars: ✭ 516 (-3.37%)
Mutual labels:  template
Evie
A production-ready theme for your projects with a minimal style guide https://evie.undraw.co
Stars: ✭ 481 (-9.93%)
Mutual labels:  template
Angularwebpackvisualstudio
Template for ASP.NET Core, Angular with Webpack and Visual Studio
Stars: ✭ 497 (-6.93%)
Mutual labels:  template
Uikit Ecommerce Template
E-commerce template built with UIKIt
Stars: ✭ 453 (-15.17%)
Mutual labels:  template
Rspec Benchmark
Performance testing matchers for RSpec
Stars: ✭ 460 (-13.86%)
Mutual labels:  rspec
Orgkit
Provision a brand-new company with proper defaults in Windows, Offic365, and Azure
Stars: ✭ 490 (-8.24%)
Mutual labels:  template
Landing Page
Tailwind CSS Starter Template - Landing Page
Stars: ✭ 444 (-16.85%)
Mutual labels:  template
Hartija Css Print Framework
Universal CSS for web printing
Stars: ✭ 509 (-4.68%)
Mutual labels:  template
Asp Net Core Vue Starter
ASP.NET Core + Vue.js starter project
Stars: ✭ 436 (-18.35%)
Mutual labels:  template
Vue Quasar Admin Example
Example of quasar admin
Stars: ✭ 481 (-9.93%)
Mutual labels:  template
Ginatra
A web frontend for Git repositories
Stars: ✭ 522 (-2.25%)
Mutual labels:  sinatra
Sinatra Param
Parameter Validation & Type Coercion for Sinatra
Stars: ✭ 516 (-3.37%)
Mutual labels:  sinatra
Input Mask Ios
User input masking library repo.
Stars: ✭ 494 (-7.49%)
Mutual labels:  template

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].