Project

singu

0.0
No commit activity in last 3 years
No release in over 3 years
An opinionated Sinatra and Angular.js structure
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.5
>= 2.6.1, ~> 2.6
>= 4.3.1, ~> 4.3
>= 0.10.0, ~> 0.10
>= 0.2.4, ~> 0.2
>= 0.1.8, ~> 0.1
>= 10.3.2, ~> 10.3
>= 3.0.0, ~> 3.0
>= 1.0.0, ~> 1.0
>= 0.1.1, ~> 0.1

Runtime

~> 0
 Project Readme

singu

Sinatra + Angular Base App Generator

Development Boostrap

Install singu gem with provides base app generator

gem install singu

To create new application in current directory run

singu app_name

To start sinatra app server run

rackup

Then you can open

open http://0.0.0.0:9292

Possible options

  • --gems [array] => add following gems to Gemfile and install them
singu [your_app_name] --gems haml pry
  • --skip-angular [boolean] => don't append client dir with base angular app
singu [your_app_name] --skip-angular=true
  • --template [hash] => install sinatra and angular apps from external github repos
singu [your_app_name] --template sinatra:regedarek.singu-custom-sinatra-app angular:regedarek/singu-custom-angular-app

Example templates

Application Structure

Generator proceeds

CodeĀ» singu your_app
      create  your_app
      create  your_app/.gitignore
      create  your_app/Gemfile
      create  your_app/Procfile
      create  your_app/Rakefile
      create  your_app/app.rb
      create  your_app/app/lib/db.rb
      create  your_app/app/models.rb
      create  your_app/app/models/
      create  your_app/app/routes.rb
      create  your_app/app/routes/base.rb
      create  your_app/config.ru
       exist  your_app
      create  your_app/client/Gruntfile.js
      create  your_app/client/app/index.html
      create  your_app/client/package.json
         run  git init . from "./your_app"
Initialized empty Git repository in /Users/rege/Code/your_app/.git/
         run  bundle from "./your_app"

To release new version of singu

Commit changes and then

git tag -a v0.0.*
git push origin master --tags
gem build singu.gemspec
gem push singu-0.0.*.gem

gem update singu