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

Goodbye Yeoman, hello Slush!

Goodbye Yeoman, hello Slush!

So i've always been a fan of convention over configuration. Let that preface my switching from the dredges of grunt configuration files to the (magnificent) gulp streaming build system. Now shifting my reasons aside (there are many,) I looked long and hard for a generator system that was as paired to Gulp as Yeoman was to Grunt. One common problem with these systems is that JS is upgrading and morphing so quickly, it's hard to keep a system that doesn't get outdated too quickly. I firmly believe that Gulp stands behind the core beliefs of the promises methodology that has

Read More

ES6 Modules Today

ES6 Modules Today

So all of the ES6 features are currently available to be transpiled to your common ES5 today using babel and some tricks. I've created a slush generator to create a bare-bones project that uses ES6 modules entirely while transpiling using Babel, AMD, and some other techniques. The generator is called "Justice". It's some long and contrived acronym that you can find on it's project page. Any any rate, gotta get back to coding. Clone it here!

Read More