Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/schteppe/physicstoy
2D physics editor
https://github.com/schteppe/physicstoy
Last synced: about 2 months ago
JSON representation
2D physics editor
- Host: GitHub
- URL: https://github.com/schteppe/physicstoy
- Owner: schteppe
- Created: 2014-11-17T21:00:19.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2015-08-16T15:34:52.000Z (over 9 years ago)
- Last Synced: 2024-04-09T18:24:47.395Z (9 months ago)
- Language: JavaScript
- Homepage: http://physicstoy.com
- Size: 1.63 MB
- Stars: 12
- Watchers: 4
- Forks: 2
- Open Issues: 22
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[p2.js](https://github.com/schteppe/p2.js) physics editor for the web
# Install & build
Prerequisities: [Node.js](https://nodejs.org/), [Grunt](http://gruntjs.com/), [Heroku toolbelt](https://toolbelt.heroku.com/), [Postgres](http://www.postgresql.org/)
```
$ 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.