Code 52 - a new coding project every week

Say Wat? Recap

With the long weekend due to the Easter break, this has been an interesting and relaxed week for all involved.

As I need to dive into preparing the next project, here's a bullet list version of the recap. Or you can just go and play around with the site:

What we acheived

  • Learning how a good NodeJS application is structured - much love to Chris Sainty for giving us some guidance on this. While initial demos show off cool things like building chat servers, going from that to separating application configuration and logic.

  • MongoDB - we had a relatively simple schema to represent our data (question, answers and users) and MongoDB was an ubiquitous option for us to test locally or use in live environments. With the availability of hosted databases and support on many cloud providers (even Azure) this was an easy choice.

  • Deployment - we can take the one codebase and deploy it today to Heroku and AppHarbor (as long as they have a MongoDB addin configured too). We also learned about how node_modules should be treated in source control and were bitten by overnight releases of packages breaking pull requests.

  • Testing - we added JSHint (static analysis tool for Javascript syntax) and Mocha (unit testing framework) and learned how easy it was to setup Travis-CI to build the project directly from the Github repository.

What's next?

As this was a relaxed weekend, there's still a number of tasks to be picked off before the client (being @shiftkey) is happy with a V1 release. We've got a wiki which should help with getting started on setting up your project.

blog comments powered by Disqus