Skip to content

nileshtrivedi/physicstoy

 
 

Repository files navigation

p2.js physics editor for the web

Install & build

Prerequisities: Node.js, Grunt, Heroku toolbelt, Postgres

$ npm install && grunt

Run the server

$ foreman start

Sample .env file

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

Contribute

PR's are very welcome! Base your PR's on the master branch. Thank you.

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.4%
  • CSS 0.6%