p2.js physics editor for the web
Prerequisities: Node.js, Grunt, Heroku toolbelt, Postgres
$ npm install && grunt
$ foreman start
The following environment variables are used in the app. You'll need to specify at least the DATABASE_URL
to get the app to run at all.
DATABASE_URL=postgres://user@domain/postgres
PHYSICSTOY_DB_FORCE_CREATE=1
PHYSICSTOY_DB_VERBOSE_CREATE=1
PHYSICSTOY_GA_ID=UAXXXX
PHYSICSTOY_MAX_CACHE_AGE=0
PHYSICSTOY_MAX_CACHED_SCENES=3
PHYSICSTOY_MAX_CACHED_THUMBNAIL_PAGES=3
PHYSICSTOY_MAX_DB_CONNECTIONS=10
PHYSICSTOY_TABLE_PREFIX=pt_
PHYSICSTOY_TITLE=PhysicsToy
PR's are very welcome! Base your PR's on the master
branch. Thank you.