Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/schteppe/physicstoy

2D physics editor
https://github.com/schteppe/physicstoy

Last synced: about 2 months ago
JSON representation

2D physics editor

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.