Code Monkey home page Code Monkey logo

antoine.goutenoir.com's Introduction

DOODLING FOR THE WIN

Hacking away with symfony2, javascript, canvas, css3, html5, and haptic goodiness. This is using a very early version of symfony2, predating the move to composer !

This is a really old experiment with canvas, made when everybody was still using adobe flash. You should look at Cyx for a cool (and a bit more modern) experiment with WebGL, Coffeescript and Leap Motion, and also ÆGO (still WebGL, but with Dart this time), on one hand because it's got a cool URL and on the other hand because it's the (ongoing) realization of one of my childhood dreams.

I'm pretty confident this website can be hacked to execute arbitrary code on my server, but I'm also pretty confident that if you do have the skills to do such a thing, you also do have the ethics of the hacker, so... welcome !

TODO

No promises.

  • Enable Leap Motion drawing
  • Move to a file-based database
  • Upgrade the attachment of a message to a doodle

INSTALL

Configure app/config.parameters.ini (use .dist file as template)

sudo setfacl -R  -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs web
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx app/cache app/logs web

sudo setfacl -R  -m u:www-data:rwx -m u:`whoami`:rwx src/Goutte/DoodleBundle/Resources/public
sudo setfacl -dR -m u:www-data:rwx -m u:`whoami`:rwx src/Goutte/DoodleBundle/Resources/public

php bin/vendors install
php bin/vendors update

php app/console doctrine:schema:create
php app/console assets:install --symlink web

php app/console cypress:compass:compile
php app/console cypress:compass:compile -e=prod

We need compass, too :

$ sudo gem install compass

Then, configure a watcher, with correct paths, and it works !

TESTS

The test suite mostly covers the API, as testing drawing on a canvas requires some very very VERY heavy browser/mouse slaving, which is pretty far out of the scope of this simple project.

To be able to set breakpoints in tests, run :

$ export XDEBUG_CONFIG="idekey=PHPSTORM"

(I keep this export for archive puposes, I don't need it anymore)

MIGRATE TO PROD

Thanks to rsync and ssh, this is a breeze :

$ bin/publish

antoine.goutenoir.com's People

Contributors

goutte 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.