< description

Notes, thoughts, failures. A blog.

< tags | sort -R | ಠ_ಠ
0 Hashes/s 0 Total | Threads: 1 + / | | ?
soyuka@soyuka.me ~/soyuka.me/tags/nodejs/

Call nodejs frameworks routes programmatically

All those examples will call GET /some/other/path when GET / is called with different frameworks.

~300 Words

Dockerize a node app in 2 minutes

For the following I’m using a project of mine : Explorer. It’s a directory listing tool. To run it only needs a configuration file.

~200 Words

Use dependency injection!

Take a nodejs app, which has :

  • a global configuration
  • a redis client (or it could be a database connection)

Those both will most likely be instancianted once in your application. A database pool might have a more complicated behavior, but at the end it’ll has the same result: a pool instance to work with.

~600 Words

An unpleasant babeljs experiment

We all love new technologies, and we want to use them as soon as they’re out. ES6 comes with really nice features, for example: arrow function default function argument value block scopes rest parameters etc… Thing is, nodejs doesn’t allow the use of all those new, and mostly nice features, yet. This is why some folks build the well known Babeljs. Yeah, this was my reaction too at first sight.…
~600 Words

NoSQL databases does not MEAN anything

There is so much hype around the MEAN stack, it can be hard to ignore. @lewiswalsh

True. And oh gosh, I hate this abbreviation! Think about a small developer, all he knows is some PHP and a bit of jQuery to write his website. One morning, on twitter, he reads that everybody is talking about MEAN. First thing he’s going to ask is: what does it mean? (yeah crap joke)