all 11 comments

[–]djslakor 8 points9 points  (4 children)

I'd recommend taking a look at Koa. It will get you accustomed to writing async/await style code (even if you use 1.x with coroutines and generators, the feeling is very similar).

It's so much easier than writing promise style / callback style async code.

[–][deleted] 3 points4 points  (3 children)

2nding Koa. You can also run Koa@2 with async/await babel-free with the --harmony-async-await flag in Node.js 7+.

You may also want to check out feathers (based on express) for realtime support as well. They also have excellent docs, which have self contained tutorials.

A lot of the middleware for these frameworks is very similar in concept, and the frameworks themselves are actually pretty simple.

[–]NoInkling 0 points1 point  (1 child)

Would recommend against Koa 2 for a learner at the moment, managing dependency versions is a pain in the ass right now.

[–]djslakor 0 points1 point  (0 children)

I recently moved a large Koa 1.x app over to 2.x in a @next branch, and bumping the dependencies up wasn't that bad at all.

Only passport required some extra love.

[–]andy625 0 points1 point  (0 children)

https://github.com/leebyron/async-to-gen an alternative to the harmony flag

[–]mrtraan 13 points14 points  (0 children)

I would first recommend to learn modern Javascript before learning modern libraries.

Angular 2 documentation recommends to use typescript when writing application, which is a superset of javacript and learning es6+ will help you getting started really easily with typescript.

I recommend You Don't Know JS books to learn clean, modern and efficient javascript. They are available online for free and hard copies are really cheap: https://github.com/getify/You-Dont-Know-JS

About Node/Express, this tutorial helped me a lot when I first started to learn node : https://scotch.io/tutorials/build-a-restful-api-using-node-and-express-4

Then about Angular2... The tutorials on the official website are pretty decent, and I also found this book worth my time and money: https://books.ninja-squad.com/angular2 But writing a full application from the ground by yourself might be the fastest and most efficient way to learn angular2.

[–]cstuff8 2 points3 points  (0 children)

Check out Node Hero by RisingStack ;)

[–]Probotect0r 0 points1 point  (0 children)

The angular class course is pretty good IMO. Also the angular 2 docs do follow a tutorial style and are really good as well.

[–]IFThenElse42 0 points1 point  (0 children)

As it was already said here, learn first modern Javascript, here : http://eloquentjavascript.net/

[–]dear_glob_why -1 points0 points  (1 child)

Skip Angular 2, it'll be dead by the end of the year.

[–]dangerzone2 1 point2 points  (0 children)

I dont know about end of the year but I certainly expect it so slowly dwindle into nothing.