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.4 (10 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.
537 students enrolled
$19
$25
24% 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

Discover

Find online courses made by experts from around the world.

Learn

Take your courses with you and learn anywhere, anytime.

Master

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

What 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.

Curriculum

Section 1: Intro and installations
Intro and what to Expect
Preview
02:42
Basic installations
Preview
04:44
installing tsd and typings
Preview
02:19
Typescript compilation and tsconfig setup
Preview
04:18
Simple Node.js Express server with typescript
09:50
Section 2: Express js and Models
setting up express app and basic routing
20:53
setting up Mongoose and bodyParser
12:42
User Mongoose Model and Signup Route
09:48
Section 3: Authentication and AuthMiddleware
Signing in and session creation
14:22
Authentication Middleware
14:06
Getting current Authenticated User
05:07
Section 4: Testing
Integration test with Mocha and supertest
15:47
setting up npm script and using should.js assertion
06:40
testing signin route
09:09
testing signin with wrong password
05:23
testing me and setting headers in supertest
10:41
Section 5: Promise and Async/await basics
Basics of Promises
09:23
Mongoose and Promises
04:50
basic async/await
07:45
Section 6: Async/Await
more async/await and refactoring signin
08:09
me route refactored to async/await
03:50

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