Friday, March 27, 2015

Mongoose value defaulting

Pretty neat way of defaulting object values in mongoose. Say you want to have a default proximity uuid assigned to one of your documents. Simply enclose this in a type and default definition like the one below. Added bonus of being quite readable as well.

beaconProximityUUID: {type: String, default: BEACON_PROXIMITY_UUID}

Saturday, February 21, 2015

Synology DS1513+

Synology DS1513+

Been researching on a good backup solution for the home to keep up mostly with the photos we snap from time to time. Am currently using a WD MyBook thats about to be full.

Yeoman and the Angular Fullstack Generator

If you have not heard of this yet and you are developing Angular JS applications, now is the time to take it for a spin

This single-handedly takes the sting out of developing javascript web applications generating the boiler plate code required to have something up in running in literally a couple of minutes. You get a Bootstrap, a Passport.js backed authentication layer, a mongoose framework for your mongodb data store and the pre-requisite glues for your angular and node to talk to each other.