Git Product home page Git Product logo

emfpostergenerator's Introduction

The Electromagnetic Field Poster Generator

The EMF Poster Generator is a simple Sinatra & JavaScript app built for attendees at EMF 2012. The aim was to easily create a poster about their on-site projects. Users can edit the poster in place and save it as a publicly accessible web page.

It doesn't degrade gracefully and it won't work without JavaScript. It makes use of 960.gs and PageDown.

A config.ru file is provided, so it should run out-of-the-box as a Rack app. You can try it out on the web.

Requirements

Ruby; Sinatra; SQLite; SASS; DataMapper.

Getting Started

  1. Get a copy of the source code.
    git clone [email protected]:creature/emfpostergenerator.git
    cd emfpostergenerator
    
  2. Grab the dependencies.
    bundle install
    
  3. Generate the CSS files:
    cd public/css
    sass blueonwhite.scss blueonwhite.css
    sass blackonwhite.scss blackonwhite.css
    sass whiteonblue.scss whiteonblue.css
    
  4. Run poster.rb:
    ruby poster.rb
    

You'll now have a server running on http://localhost:4567. Visiting that URL in your web browser should show you the poster generator.

System Tour

poster.rb

The backend server for the system. The top section defines the model for our poster. The bottom section has three routes set up: one to serve the index page (the dummy poster), one to serve a specific poster (pretty much the same), and one to save a new poster.

views/index.erb

The only template in the system. It's the poster.

public/js/postereditor.js

The JavaScript that drives the front-end. Registers some click handlers for the editable elements, and saves the poster via AJAX.

License

AGPL, except for the bits that aren't (960gs and PageDown).

Credits

The code was written by Alex Pounds. Visual design by Roberto Crippa.

emfpostergenerator's People

Contributors

creature avatar

Watchers

 avatar James Cloos 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.