Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
August 18, 2016 07:57 am GMT

Getting Started With Koa 2 And Async Functions


One of the upcoming features of JavaScript that I especially like is the support for asynchronous functions. In this article, I would like to show you a very practical example of building a server-side application using Koa 2, a new version of the web framework, which relies heavily on this feature.

Getting Started With Koa 2

First, Ill recap what async functions are and how they work. Then, Ill highlight the differences between Koa 1 and Koa 2. After that, I will describe my demo app for Koa 2, covering all aspects of development, including testing (using Mocha, Chai and Supertest) and deployment (using PM2).

The post Getting Started With Koa 2 And Async Functions appeared first on Smashing Magazine.


Original Link: https://www.smashingmagazine.com/2016/08/getting-started-koa-2-async-functions/

Share this article:    Share on Facebook
View Full Article

Smashing Magazine

Smashing Magazine delivers useful and innovative information to Web designers and developers.

More About this Source Visit Smashing Magazine