Skip to content

Draw 16 x 16 animated pictures. Draw! is a social flavored online pixel art editor.

License

Notifications You must be signed in to change notification settings

potomak/drawbang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

06e9007 · Dec 16, 2017
Apr 13, 2012
Dec 16, 2017
Nov 27, 2012
Jan 2, 2012
Oct 19, 2014
Sep 10, 2011
Apr 7, 2012
Jul 22, 2013
Jan 3, 2012
Dec 16, 2017
Mar 8, 2015
Dec 16, 2017
Nov 27, 2012
Jul 4, 2011
Dec 10, 2017
Dec 10, 2017
Mar 8, 2015
Mar 8, 2015
Nov 3, 2011
Mar 8, 2015
Jul 22, 2013
Jul 7, 2013
Jun 2, 2011
Oct 19, 2014
Dec 16, 2017

Repository files navigation

Draw! Draw! (drawbang)

Draw 16 x 16 animated pictures. Draw! is a social flavored online pixel art editor.

Draw! it's also an experiment app about:

  • html5 canvas element.
  • redis

Follow @drawbang and read the blog at http://blog.drawbang.com.

Required gems

bundler and heroku gems are needed, than just run

$ bundle

to install other required gems.

See also Gemfile

How to run the app locally

Copy Facebook config file example

$ cp config/facebook.example.yml config/facebook.yml

Copy Twitter config file example

$ cp config/twitter.example.yml config/twitter.yml

Start Redis server

$ redis-server config/redis.conf

Run

$ ruby server.rb

or run rake task server, alias s

$ rake s

Start the app console

Run rake task console, alias c

$ rake c

How to use Heroku

Create Heroku app

Run

$ heroku create

Push app to Heroku (deploy process)

Before pushing any new version to Heroku be sure to recompile minified javascripts running

$ rake compile

To push master branch to Heroku run

$ git push heroku master

Configuration variables

To see current configuration variables run

$ heroku config

To add configuration variables run

$ heroku config:add S3_KEY=xxx S3_SECRET=xxx

Minimal configuration variables:

  • FB_APP_ID
  • FB_APP_SECRET
  • TWITTER_CONSUMER_KEY
  • TWITTER_CONSUMER_SECRET
  • S3_KEY
  • S3_SECRET

Get Heroku logs

To see Heroku logs run

$ heroku logs

Run Heroku console

Run

$ heroku console

Get application users and drawings stats

Run

$ rake stats

Run specs

$ bundle exec rake spec

License

Draw! (drawbang) is released under the MIT license.

How to contribute

If you find what looks like a bug:

  1. Check the GitHub issue tracker to see if anyone else has reported issue.
  2. If you don’t see anything, create an issue with information on how to reproduce it.

If you want to contribute an enhancement or a fix:

  1. Fork the project on github.
  2. Make your changes with tests.
  3. Commit the changes without making changes to the Rakefile or any other files that aren’t related to your enhancement or fix
  4. Send a pull request.