All Projects → JHeroGR → ruby-sinatra-starter-app

JHeroGR / ruby-sinatra-starter-app

Licence: MIT license
A starter project for Ruby On Sinatra web app projects to introduce programmers to Ruby programming.

Programming Languages

ruby
36898 projects - #4 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to ruby-sinatra-starter-app

ts-detox-example
Example TypeScript + React-Native + Jest project that integrates Detox for writing end-to-end tests
Stars: ✭ 54 (+50%)
Mutual labels:  starter-kit, starter-project
SampleProject
A starter project for Sample Project in Objective C. Objective C version of https://github.com/xeieshan/SwiftySampleProject
Stars: ✭ 31 (-13.89%)
Mutual labels:  starter-kit, starter-project
flask-app-blueprint
Flask App Blueprint / Boilerplate including user registration/login, admin only section, CRUD on database, and more. Based on Python, Flask, PostgreSQL, et al. deployed on Heroku. The #1 starter project.
Stars: ✭ 144 (+300%)
Mutual labels:  starter-kit, starter-project
run-aspnetcore-basics retired
One Solution - One Project for web application development with Asp.Net Core & EF.Core. Only one web application project which used aspnetcore components; razor pages, middlewares, dependency injection, configuration, logging. To create websites with minimum implementation of asp.net core based on HTML5, CSS, and JavaScript. You can use this boi…
Stars: ✭ 15 (-58.33%)
Mutual labels:  starter-kit, starter-project
rubynepal.github.io
Official website of Ruby Nepal
Stars: ✭ 21 (-41.67%)
Mutual labels:  sinatra, programmers
symfony-lts-docker-starter
🐳 Dockerized your Symfony project using a complete stack (Makefile, Docker-Compose, CI, bunch of quality insurance tools, tests ...) with a base according to up-to-date components and best practices.
Stars: ✭ 39 (+8.33%)
Mutual labels:  starter-kit, starter-project
awrora-starter
Landing page template built with one of most popular javascript library Vue.JS, Vuetify (Material Design) and Nuxt.JS with SSR.
Stars: ✭ 38 (+5.56%)
Mutual labels:  starter-kit, starter-project
aspnet-mvc5-starter-template
Asp.Net MVC 5 Starter Kit is a S.O.L.I.D, clean and globalized template with all the necessary boilerplate, ready to go.
Stars: ✭ 39 (+8.33%)
Mutual labels:  starter-kit, starter-project
sass-starter-pack
Sass starter files using Gulp v4.0.0 🔥
Stars: ✭ 34 (-5.56%)
Mutual labels:  starter-kit, starter-project
Apiato
PHP Framework for building scalable API's on top of Laravel.
Stars: ✭ 2,564 (+7022.22%)
Mutual labels:  starter-kit, starter-project
nodejs-hackathon-boilerplate-starter-kit
Just a Hackaton/Startup Full-stack node.js starter
Stars: ✭ 37 (+2.78%)
Mutual labels:  starter-kit, starter-project
nest-typescript-starter
Nest framework TypeScript starter (node.js)
Stars: ✭ 35 (-2.78%)
Mutual labels:  starter-kit, starter-project
botfuel-sample-starter
Starter bot using Botfuel Dialog
Stars: ✭ 24 (-33.33%)
Mutual labels:  starter-kit, starter-project
enlite-starter
Enlite Starter - React Dashboard Starter Template with Firebase Auth
Stars: ✭ 28 (-22.22%)
Mutual labels:  starter-kit, starter-project
Start Here
💡 A Quick-start Guide for People who want to dwyl ❤️ ✅
Stars: ✭ 1,392 (+3766.67%)
Mutual labels:  starter-kit, beginner-friendly
laravel-startkit
Laravel Admin Dashboard, Admin Template with Frontend Template, for scalable Laravel projects. It is to save your time when You start with new scalable Laravel projects with many features Bootstrap, cooreui, infyom admin Generator, roles and permissions, translatable models, spatie media and much more
Stars: ✭ 55 (+52.78%)
Mutual labels:  starter-kit, starter-project
materializecss starter
A Starter Boilerplate for Materializecss, ionicons, font-awesome and Animatecss
Stars: ✭ 58 (+61.11%)
Mutual labels:  starter-kit, starter-project
nlp-cheat-sheet-python
NLP Cheat Sheet, Python, spacy, LexNPL, NLTK, tokenization, stemming, sentence detection, named entity recognition
Stars: ✭ 69 (+91.67%)
Mutual labels:  starter-kit
sinatras-skeleton
Basic Sinatra Skeleton MVC CRUD App with Sprockets, Warden, ActiveRecord and PostgresQL
Stars: ✭ 13 (-63.89%)
Mutual labels:  sinatra
encrypted cookie
AES-128 encrypted session cookies for Rack (and Sinatra and other frameworks).
Stars: ✭ 54 (+50%)
Mutual labels:  sinatra

Ruby On Sinatra Starter Project

A starter project for Ruby On Sinatra for beginner developers

Purpose

The purpose of this is to simplify development environment for developers and programmers to make web applications with Ruby on Sinatra. It is also a good learning tool for developers and programmers who want to learn or switch to Ruby on Sinatra.


Gems Used


Prerequisites

Before you download there are prerequisites you need to make this project work.

  • A Ruby environment such as RVM or RBenv
  • Install Ruby with either RBenv or RVM
  • The Bundler Gem, after you install Ruby, use gem install bundler to install the gem

Installation/Download

Clone the repo, or Download it, place it whereever you like, open any terminal you use, go into the project directory and run the command: bundle install


Included

The app.rb is the main ruby file used, this will contain the routes you will be making, go into the directory where the app.rb is located and run ruby <main ruby file>, in this case <main ruby file> is the app.rb file, afterwards open your browser with localhost:port where port is the number that shows in the terminal on startup.

A views folder that contains 6 .erb files which include HTML that renders into the web application.

  • layout -> The Default template the app will render
  • home -> The Home template that will render on the layout.erb
  • about -> The About template
  • contact -> The Contact template
  • not_found -> The Not Found Template, it has its own layout built, feel free to modify it if you like.
  • error_layout -> This special template is used instead of the default template to render the not_found.erb (credit goes to rockdog for the feedback)

The Gemfile and Gemfile.lock which are generated after you run the command bundle init. You will need the Gemfile if you wish to deploy your web application.

A public folder with a css folder including main.css and mobile.css files to design the app both in desktop and mobile devices. Links are already in the layout.erb file. Feel free to change it (See Note section below).

A config.ru file for deployment. This is for users who wish to deploy their custom app to a cloud service like Heroku. If you have troubles deploying it to Heroku and encounter this error: "Could not find 'bundler' (version number) required by your /app/Gemfile.lock.". Delete the Gemfile.lock file, run bundle install in your command line before deployment, and deploy to Heroku. The config.ru file also allows you to run the command rackup and use the port 9292 for local development. (credit goes to isolatrum for the feedback)


Version 1.1.1

  • Users now have the option to either run ruby <main ruby file> or run rackup in the command line for local development (Thank you isolatrum).
  • Sinatra Hat image added to project (pulic/img/sinatra-hat.png).
  • Added mobile.css file for web page display in mobile devices (currently supported: max-width: 320px).
  • Added error_layout.erb for error pages. (Thank you rockdog)
  • Edited code fixes to ruby style indentation (Thank you austinthecoder and mhenon910).

Note

You are allowed to fork my template, but not allowed to commit to my changes, you're more than welcome to suggest to me what gems or designs to add to make it more beginner friendly. I will be working on improving this starter app meanwhile, feel free to download it and mess with it, for now, it is my first release. If you decide to use this template for your project, do please tag me in your project. Feedback is appreciated.

Copyright JHero Studios

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