Skip to content

Silly toy Sinatra app to provide something to style

Notifications You must be signed in to change notification settings

astromoose/yoga_classes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yoga Classes

This is a silly little Sinatra app that provides some functionality and renders some pages that can be styled with haml/sass/javascript.

The idea is that the app presents a view of all the available classes at a Yoga studio. It is possible to unsubscribe students from a class, and it is possible to promote a student into a harder class.

Ultimately, the idea is to present this functionality using columns and draggable boxes reprsenting the students.

Initialisation

State is stored in a two YAML files:

  • index.yaml
  • classes.yaml

To begin with a new set of users and classes, run:

ruby initialise.rb

Indexes

Indexes is a list of the Yoga classes available at the studio, organised by difficulty.

Classes

Classes is the database of attendees of each class.

Running the app

There's a config.ru file which means you can run this with shotgun or rackup, or if, for some reason, you really want to run the app for real, you can serve it with unicorn and Nginx.

To have a play, just run:

shotgun config.ru

Then browse to http:https://localhost:9393

Known issues

For some reason, I can't get this to work with my versions of Ruby 1.9. However, my friend could... I plan to fix this very soon, however, until then, just run it with 1.8.7 or REE and it'll be fine. It might also be fine on 1.9 for you. YMMV.

About

Silly toy Sinatra app to provide something to style

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%