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.
Before running the app, you must have an instance of MongoDB running on your localhost. Once you have that set up, run these commands:
npm install
npm start
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.