Week 4 (1): It’s too cold up here.

--Originally published at tc3045 – Ce qui est chouette

It all started with wanting to store scores, and we did that, but also migrated our database from mLab to MongoDB‘s cloud service Atlas, and let me introduce Mongoose in case you haven’t heard of it, it’s object modeling for MongoDB, you define a Model as a Schema that includes typing and provides an easy query-building interface and validation against these Models. We switched from raw handling MongoDB interactions to using Mongoose’s Schemas. From Mongoose’s documentation page:

Each schema maps to a MongoDB collection and defines the shape of the documents within that collection.

With this new implementation we let Mongoose handle interactions with our MongoDB instance.

putneypics
Heading South by Putneypics on Flickr under a CC License.

In other news, we have a second level ready and uploaded, and score storing is almost done.

– A duck who’s gone south for the winter.