Clay with ES6 modules

Clay with ES6 modules

I've been working on rewriting Clay with es6 modules entirely as a canvas application. It's been slightly complicated to get around the cyclic-redudancy module import system. It's not entirely smart so It's imperative to set up the application a certain way in order to avoid these build errors.

The topleft of the picture is the Gulp build system for the Clay project. Top middle is the mongodb server. Top right is the nodejs rest server. Bottom left is the styles being edited for the clay project. Bottom right I'm currently looking at the abilities on the server.

Read More

PLOSDB reworked with mongodb and node

PLOSDB reworked with mongodb and node

It's been super easy integrating node with mongodb to create a PLOSDB server. Since all of the assets are static with PLOSDB, a document store made sense. I'm still looking for a more reactive server to use for super agile data sets like player locations and stuff, but that can be set aside for now while I work on Clay. Here was the basic code for setting up the server as well as one of the routes.

var instance = require('./instance.js'),  
    db = instance.db,
    app = instance.app;

/**
 * Initialize the database connection
 */
db.open(function(err, db) {  
  if(!err)

Read More