Git Product home page Git Product logo

sinatra-scheme-app's Introduction

sinatra-scheme

simple schema for new app using sinatra for my own projects

## requirement

the proyect use the below gems:

-sinatra
-sinatra
-sinatra-contrib
-sinatra-r18n
-sinatra-static-assets
-multi_json
-builder
-sequel
-sqlite3

and optional gem are between comments on the code

-pony

## include as git submodule

font-awesome at folder /public/font-awesome
$ git submodule add https://github.com/FortAwesome/Font-Awesome public/font-awesome

bootstrap at folder /public/twbs
git submodule add https://github.com/twbs/bootstrap public/twbs

when you need update all submodule try with:
$ git submodule foreach git pull origin


## Sinatra Classic style

this repo choose classic ergo don't use subclassing wrapper, if you want choose modular with subclassing Sinatra::Base or Sinatra::Application you will sorround with class and change config.ru check [here](http://www.sinatrarb.com/intro.html#Modular%20vs.%20Classic%20Style)


## features included

-schema for sitemap creation
-minification by [Google html compressor](https://code.google.com/archive/p/htmlcompressor/)
-customizable bootstrap 4 css inclusion, check


## future features to include or include at another branches

-cookies support
-test, rspec, cucumber, selenium, capibara
-markdown support at views

- CI with travis? rsync ...



## installation

	### database creation

	bundle install
	cd db

	sequel -m migrations/ sqlite://db.sqlite



	### css bootstrap generation
	sass main.scss main.css --style [nested|expanded|compact|compressed]

	### updating font awesome

	font awesome was add using submodules of git

	cd public/
	git submodule add https://github.com/FortAwesome/Font-Awesome

	and you can update doing

	cd public/Font-Awesome
	git pull


	## environment test | development | explotation

	you can change your environment at:


	## how to deploy

	set Rakefile for automatic deploy

## customization of security

into the project there some "TODO" you must search and change for your project, like:
-cookies secret security
-your domain name for sitemap.xml

remove git remove references

git remote -v
git remote rm destination
git remote -v

## for database it use sequel

## setting configuration for automatic deploy with rake

check Rakefile and spice the file with

sinatra-scheme-app's People

Contributors

stbnrivas avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.