Skip to content

Tsmith18256/async-await-article

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Async / Await Demo

Companion project to my article on async/await.

This app provides a brief demonstration of using JavaScript's new async and await keywords by using them in a small CRUD API with Mongoose. Note that running this app require Node v7 and, at the time of writing, requires you run Node with the --harmony flag.

Running the Application

Before running the app, you must have an instance of MongoDB running on your localhost. Once you have that set up, run these commands:

  1. npm install
  2. npm start

Comparing to Promises and Callbacks

There are three branches in this project: master, promises, and callbacks. To compare the async and await to other methods, look at app/task.controller.js on these different branches.

About

A demo application that goes along with my Async/Await article.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published