After that book and my head had stop spinning, we still had to wait for our belongings to arrive to Indonesia. I had nothing to read or code. So I thought I would put my Node-knowledge into action. And started to check out Express.
Here we are. I haven’t really coded anything real, but rather read, labbed and followed a lot of tutorials. But i’ve picked a couple of things that I’ve found very useful. I really don’t know how to classify them, but maybe it could be called patters, as in “ways I often end up working”.
BIG DISCLAIMER - these are just my remember list. I’m getting old. I forget stuff. I write it here. I’m getting old. I forget … no… wait… What I’m saying is that you shouldn’t expect to be blown away by the depth and innovation here. But I can almost guarantee that you and I haven’t thought about the same things. You might pick something interesting up.
This will be super long if I put everything into a single post. So I’ll do many small posts instead. Here’s the link list:
- Doing stuff in the terminal is not scary at all
- npm is not only for getting packages
- Package.json is a mighty tool
- Git is not that hard, but I need to refresh my knowledge
- Callback function is cool stuff, and I even know how to write them
- mocha is cool both as framework and test runner
- Should is a nice way to do asserts
- monk is an easy way to access mongo
- Express is best without generators
- supertest is a nice way to test an api
I’m also planning to write a “putting it all together”-post where I create a little back-end api for a small site using the “patterns” I’ve written about.
The Node course at TekPub is awesome too and be sure to check it out.