Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Typescript Async/Await in Node JS with testing
Rating: 3.5 out of 5(45 ratings)
764 students

Typescript Async/Await in Node JS with testing

Learn new async programming with Typescript and easy integration testing with mocha and Express Integration
Created byAyerhan Afa
Last updated 4/2016
English
English [Auto],

What you'll learn

  • 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

Course content

6 sections21 lectures3h 2m total length
  • Intro and what to Expect2:42

    Explore typescript async in node js with testing, building express and mongoose apps, setting up models and authentication, and learning callbacks, promises, async/await, and testing with marker and super test.

  • Basic installations4:44

    Install the latest Node.js, then install TypeScript globally (tsc), set up MongoDB, and install project dependencies like Express, Mongoose, and uuid to prepare the app.

  • installing tsd and typings2:19

    Learn to install tsd and ambient type definitions for a TypeScript node app, create a typings folder, and resolve dependencies with npm to enable typings for libraries like mongoose.

  • Typescript compilation and tsconfig setup4:18

    Create a bin startup script in TypeScript, compile with the TypeScript compiler, and configure tsconfig with a basic test config to generate JavaScript with source maps.

  • Simple Node.js Express server with typescript9:50

    Set up a simple Node.js Express server in TypeScript, configure a shared tsconfig, compile to JavaScript, define a get route, listen on localhost:2037, export the app, and test with Postman.

Requirements

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

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

Who this course is for:

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