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

https://github.com/montyanderson/processing-websockets

A project showing how to make browser-controlled 3D objects using procesing, nodejs, and redis.
https://github.com/montyanderson/processing-websockets

Last synced: 3 months ago
JSON representation

A project showing how to make browser-controlled 3D objects using procesing, nodejs, and redis.

Awesome Lists containing this project

README

        

processing-websockets
=====================

Install
-------

* Install [nodejs](https://nodejs.org/download/), [processing](https://processing.org/download/?processing), and [redis](http://redis.io/download).

* Download a zip or clone the repository by doing:

``` bash
git clone https://github.com/montyanderson/processing-websockets.git
```

* Install required node.js libraries:

``` bash
cd server
npm install # May require root on some systems
```

* Install the [processing redis client](https://github.com/nok/redis-processing), by going to **Sketch -> Import Library -> Add Library** and then searching for redis.

![installing redis processing client](https://i.imgur.com/U2jpQnZ.png)

* Start redis by running:

``` bash
redis-server
# Append an '&' on linux to run it,
# even after you close the terminal
```

* Start the web server by running:

``` bash
node server.js
```

* You're nearly there! Now run **sketch/sketch.pde** in processing to start the rendering

* Go to **localhost:8080** in your browser, and you're set!