All Projects → simonneutert → sinatras-skeleton

simonneutert / sinatras-skeleton

Licence: MIT license
Basic Sinatra Skeleton MVC CRUD App with Sprockets, Warden, ActiveRecord and PostgresQL

Programming Languages

ruby
36898 projects - #4 most used programming language
Haml
164 projects
SCSS
7915 projects
coffeescript
4710 projects
Sass
350 projects
javascript
184084 projects - #8 most used programming language
Procfile
174 projects

Projects that are alternatives of or similar to sinatras-skeleton

Rails
Ruby on Rails
Stars: ✭ 49,693 (+382153.85%)
Mutual labels:  activerecord, mvc
LocalSupport
A directory of local support services and volunteer opportunities
Stars: ✭ 60 (+361.54%)
Mutual labels:  heroku, activerecord
Pluck to hash
Extend ActiveRecord pluck to return array of hashes
Stars: ✭ 275 (+2015.38%)
Mutual labels:  activerecord, sinatra
tgmusicbot
Telegram bot for downloading audio from YouTube, SoundCloud & MixCloud.
Stars: ✭ 66 (+407.69%)
Mutual labels:  heroku, heroku-ready
fp-sin
Simple Sinatra shell with all the goodies.
Stars: ✭ 13 (+0%)
Mutual labels:  sinatra, sinatra-skeleton
velox
The minimal PHP micro-framework.
Stars: ✭ 55 (+323.08%)
Mutual labels:  mvc, crud-application
Feedback-bot
In Short This is An Personalized Livegram Bot Made Using Python.. Follow Me @HeimanPictures & Star This Repo
Stars: ✭ 23 (+76.92%)
Mutual labels:  heroku, heroku-ready
Jekyll Auth
A simple way to use GitHub OAuth to serve a protected Jekyll site to your GitHub organization
Stars: ✭ 778 (+5884.62%)
Mutual labels:  heroku, sinatra
Trebekbot
An addictive Jeopardy! bot for Slack. Fun fact, after I added this to my work Slack I was told to limit it to a single channel because productivity ground to a halt. (Five years later, the #jeopardy channel is still going strong.)
Stars: ✭ 147 (+1030.77%)
Mutual labels:  heroku, sinatra
sinatra-bootstrap
My opinionated Sinatra base application
Stars: ✭ 14 (+7.69%)
Mutual labels:  activerecord, sinatra
sinatra-dev-cheatsheet
A quick-and-dirty cheat sheet for creating HTML/CSS websites, and developing using Sinatra and ActiveRecord.
Stars: ✭ 44 (+238.46%)
Mutual labels:  activerecord, sinatra
Neo
Orm框架:基于ActiveRecord思想开发的至简化的java的Orm框架
Stars: ✭ 35 (+169.23%)
Mutual labels:  activerecord
nuts
Nuts and bolts for building cross-platform UI (HTML, Flutter, CLI) using Dart. Also screw frameworks (React, Vue, Angular).
Stars: ✭ 12 (-7.69%)
Mutual labels:  mvc
packt-mastering-fp
PacktPub "Mastering Functional Programming with JavaScript" video course materials
Stars: ✭ 17 (+30.77%)
Mutual labels:  boilerplate-application
active record-updated at
Touch `updated_at` by default with calls to `update_all` and `update_column(s)`
Stars: ✭ 27 (+107.69%)
Mutual labels:  activerecord
quirrel.dev
Quirrel Landing Page & Console
Stars: ✭ 41 (+215.38%)
Mutual labels:  heroku
vue-on-rails
Easy way to mount/destroy Vue.js components with Ruby on Rails and Turbolinks 5
Stars: ✭ 17 (+30.77%)
Mutual labels:  turbolinks
laravel5-heroku
Laravel 5 with best practices for deployment on Heroku - created by
Stars: ✭ 18 (+38.46%)
Mutual labels:  heroku
encrypted cookie
AES-128 encrypted session cookies for Rack (and Sinatra and other frameworks).
Stars: ✭ 54 (+315.38%)
Mutual labels:  sinatra
AllInOneFX
All In One JavaFX Application with a curated list of awesome JavaFX libraries, frameworks
Stars: ✭ 26 (+100%)
Mutual labels:  mvc

Basic Sinatra v2 App with Sprockets, Warden, ActiveRecord and PostgresQL

Take this as a working example and as an inspiration. Pull Requests are welcome 🙏

Have you tried Roda?

think sinatra is nice? Don't forget to give Roda a chance!


What this Project aims to be

This repository aims to be a boilerplate for a modular and modern (v2) Sinatra app.

demo on heroku (admin area is locked up 😉)

please check out the credits section! Without the community, this never would have been possible. Thank you.

Feel free to contribute, add more features, strip features or simply improve existing code - pull requests welcome 😄

Why not Rails?

Sinatra is a ruby/rack framework, that can be used as an alternative where Rails would simply be an overkill.

I started working my way through the sinatra docs, aiming for a setup that can easily be modeled to a basic use case.


Have you tried Roda, Sequel and Rodauth?

Yes! And I totally use that setup whenever possible (November 2021) and you should try at least roda as a POC 😎 I am 100 % serious! There's nothing wrong with sinatra, but roda kills it - give its plugins and how you do thing a grind. The journy will undoubtedly make you a better (ruby) programmer.

What is in?

I want this Sinatra boilerplate app to:

  • work with Bundler
  • use ORM is ActiveRecord
  • have an MVC-like structure
  • support Sass/Scss and CoffeeScript
  • party with jQuery and Turbolinks! Yes, Turbolinks.
  • rolls with a very basic bcrypt/warden based Authentication System
  • use PostgresQL as Database
  • run on heroku (don't forget: $ heroku config:add APP_ENV=production)

Get started

You need Ruby (>= 2.7) and Bundler (of course).

Have you heard of frozen_string_literal? No? Read this

If you do not have a local PostgresQL DB running, heroku can handle the code as is - do not forget to add Heroku PostgresQL addon in your dashboard.

  • $ git clone
  • $ bundle install
  • edit config/database.yml
  • $ rake db:setup
  • $ thin start or rerun rackup (rerun gem - not included by default!)
  • edit titles in views/layout.haml and views/nav.haml
  • check/set timezone config/timezone.rb

now what?

  • read the credits
  • read the code
  • run the code, see what it does
  • delete what you don't need and built from there, should a barebone branch be offered? What do you think? 😁

Most code is commented, so you'll learn what it does.

What needs to be done

  • enable flash messages, especially for validation feedback

Contribute

  • Send in pull requests, improve this project with features or simply by adding/improving comments 😁
  • Be nice, make public forks
  • What did you use this app for? Please, let me know! Share your projects.

Credits / Blood, Sweat & Tears

❤️ 😓 😭

Contributors to this project

https://github.com/simonneutert/sinatras-skeleton/graphs/contributors

thank you for open sourcing, writing documentation, blogging, answering and giving a hand on stackoverflow 👍

Warden

sklises repo

Steve Klise Blog post

Coderwall on Sinatra + Warden

What Ches wrote up

What Mike Ebert wrote

ActiveRecord + PostgresQL

mherman

samuelstern

BCrypt

Kieran's Answer on StackOverflow

BCrypt Gem

Sprockets

Sinatra Recipe for Sprockets

Official Sinatra Docs

Sinatra Intro

Sinatra recipes

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].