Typescript Async/Await in Node JS with testing

Learn new async programming with Typescript and easy integration testing with mocha. Express integration and Sequelize
3.5 (12 ratings)
Instead of using a simple lifetime average, Udemy calculates a
course's star rating by considering a number of different factors
such as the number of ratings, the age of ratings, and the
likelihood of fraudulent ratings.
547 students enrolled
40% off
Take This Course
  • Lectures 21
  • Length 3 hours
  • Skill Level All Levels
  • Languages English
  • Includes Lifetime access
    30 day money back guarantee!
    Available on iOS and Android
    Certificate of Completion
Wishlisted Wishlist

How taking a course works


Find online courses made by experts from around the world.


Take your courses with you and learn anywhere, anytime.


Learn and practice real-world skills and achieve your goals.

About This Course

Published 3/2016 English

Course Description

This course would teach you how to have a good mental model doing async programing in node.js leveraging typescript async await EcmaScript 7 (ES7) feauture.

you would also learn the build blocks of async/await which is Promise

Unit testing with mocha would be setup.

This course would teach you how to test rest api. with postman and later automate it with mocha unit test using supertest and an assetion library such as Should.js

Mongoose and mongodb would used and also setup interface for mongoose models in Typescript

getting acquinted with typescript

This course is structured in a way that it can get you up to speed with applying Typescript to Node.js.

you would also learn some Express.js basics and middlewares

you should take this course if you have started learning node.js or want to bring type safety to your Node.js app with Typescript or you want to learn how to use the beautiful async/await syntax to write more maintable code. this course also makes use of mongoose mongodb. so you would also learn how to use mongoose with typescript

What are the requirements?

  • students need to have Node.js installed and know a little about Node.js

What am I going to get from this course?

  • setup nodejs with typescript
  • use typescript async await features to do async programing
  • reduce callback hell
  • understand how async await uses promises
  • write simple integration test with mocha

Who is the target audience?

  • this course is meant for people who have started learning Nodejs or Typescript or want to improve there async programming skills in Nodejs

What you get with this course?

Not for you? No problem.
30 day money back guarantee.

Forever yours.
Lifetime access.

Learn on the go.
Desktop, iOS and Android.

Get rewarded.
Certificate of completion.


Section 1: Intro and installations
Intro and what to Expect
Basic installations
installing tsd and typings
Typescript compilation and tsconfig setup
Simple Node.js Express server with typescript
Section 2: Express js and Models
setting up express app and basic routing
setting up Mongoose and bodyParser
User Mongoose Model and Signup Route
Section 3: Authentication and AuthMiddleware
Signing in and session creation
Authentication Middleware
Getting current Authenticated User
Section 4: Testing
Integration test with Mocha and supertest
setting up npm script and using should.js assertion
testing signin route
testing signin with wrong password
testing me and setting headers in supertest
Section 5: Promise and Async/await basics
Basics of Promises
Mongoose and Promises
basic async/await
Section 6: Async/Await
more async/await and refactoring signin
me route refactored to async/await

Students Who Viewed This Course Also Viewed

  • Loading
  • Loading
  • Loading

Instructor Biography

Mr Ayerhan Afa, Web Developer and Engineering Student

I'm Web Developer and a computer engineering student had been programing and using Node.js ever since it began gain popularity few years ago. Started in strongly typed language C# and fell in Love with Typescript in order to have both the beauty of c# and Javascript together. as an engineering student and web developer exprimenting with new ideas, frameworks and programing languages is my main focus. I have exprience on front end with React, Redux, and AngularJs

Ready to start learning?
Take This Course