Go to file
Thomas FORGIONE 2e2617e5de Update readme 2015-05-19 18:03:35 +02:00
controllers Improved replay view 2015-05-19 16:57:30 +02:00
lib Changed files to clean 2015-05-19 11:12:38 +02:00
my_modules Initial commit of nodejs 2015-05-05 11:56:35 +02:00
posts Added more log 2015-05-19 14:25:35 +02:00
sql New sql files and improved Logger.js 2015-05-19 11:50:12 +02:00
static Added replay (first step) 2015-05-19 15:43:09 +02:00
views Cleaning and coin events 2015-05-19 11:03:53 +02:00
.gitignore Added sql init 2015-05-18 09:52:04 +02:00
README.md Update readme 2015-05-19 18:03:35 +02:00
package.json Removed useless dependency 2015-05-19 10:15:51 +02:00
server.js Added more log 2015-05-19 14:25:35 +02:00
urls.js Added reverse camera (arrow with camera at the end) 2015-05-11 08:45:13 +02:00

README.md

3D Interface

A prototype for a user-friendly 3D interface allowing to browse 3D scenes / models written with Node.js.

It is hosted by OpenShift at 3dinterface.no-ip.org.

To run a local server

First you need to configure the database. You can create a postgres database where you want, and you can initialize it by running the script sql/backup.pgsql.

Then, you have to set up nodejs to access to your database. Basically, you have to create a file private.js at the root of the repository looking like this :

module.exports.url = ... // the url to connect to your database

module.exports.secret = ... // A secret string used to hash stuff

As usual with NodeJS, it's quite easy to test. Just ensure you have node installed on your machine, clone this repo somewhere, and then, in the repo do

npm install
node server.js

You should be able to go to localhost:4000 and see the result.