Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Node.Js: Learning Koa.Js By Building REST APIs
Rating: 4.0 out of 5(151 ratings)
5,742 students

Node.Js: Learning Koa.Js By Building REST APIs

The complete guide to build REST APISs with Koa.Js, Sequelize And Mysql
Created byHaider Malik
Last updated 10/2022
English

What you'll learn

  • Learn how to build REST APIS in Nodejs
  • Learn how to documentation for REST API
  • Learn how to implement JWT Authentication

Course content

7 sections58 lectures3h 26m total length
  • Getting Setup0:04

    In this article, you are going to install tools and technologies to work with koa.js

  • Source Code0:01

    Here you can download all the source code of koa course

  • What is Koa2:28

    In this video, you are going to learn what is Koa and why should use koa.js

  • Setting Up KoaJs3:31

    In this video, I will show you how to create koa project from scratch

  • Asyn/Await Demo4:24

    I will teach what is Async/Await and why you should learn Async/Await in Koa.js

  • Adding Middleware4:06

    You will learn how to write middleware in Koa.js. How to create custom middleware in koa

  • Debugging In VS Code1:18

    You will learn how to debug koa application in Visual Studio Code

  • Debugging In Webstorm1:08

    You will learn how to debug koa application in Webstorm

  • Debugging In Chrome1:16

    You will learn how to debug koa application using Google Chrome browser

  • Understanding Application Object5:04

    In this video, you are going to learn how to Koa application object works under the hood

  • Understanding Context Object5:02

    I will teach you how context object works in under the hood. I will show you koa use context object

  • Understanding Req and Res2:48

    I will teach you what is Request object and Response in Koa application

Requirements

  • Basic knowledge of Javascript required
  • Basic knowledge of Nodejs required

Description

What is Koa.js?

Koa is a new web framework designed by the team behind Express, which aims to be a smaller, more expressive, and more robust foundation for web applications and APIs. Through leveraging generators Koa allows you to ditch callbacks and greatly increase error-handling. Koa does not bundle any middleware within core, and provides an elegant suite of methods that make writing servers fast and enjoyable.

Does Koa replace Express?

Koa is more like Connect, but a lot of the Express goodies were moved to the middleware level in Koa to help form a stronger foundation. Koa makes middleware more enjoyable and less error-prone to write, for the entire stack, not just the end application code.

Typically many middleware would re-implement similar features, or even worse incorrectly implement them, when features like signed cookie secrets among others are typically application-specific, not middleware specific.

Why is not Koa Express4.0?

Koa is a pretty large departure from what people know about Express, the design is fundamentally much different, so the migration from Express 3.0 to this Express 4.0 would effectively mean rewriting the entire application, so we thought it would be more appropriate to create a new library.

Why you should learn Koa?

  • Promise based flow in Koa
  • No Callbacke hell in Koa
  • Better error handling through try/catch in Koa
  • Koa is more modular
  • Better user experience in Koa
  • Proper stream handling in Koa

What you will learn in this course

  • Fundamentals of Koa
  • Building API from scratch in Koa
  • Integrating Koa with Sequelize
  • How to use Mysql with Koa
  • Adding relationship between models in Sequelize
  • Adding authentication in Koa and Sequelize
  • Adding documentation for REST APIS in Koa

Who this course is for:

  • Developers who want to learn how to build APIS with Nodejs
  • Students who want to learn Koa framework
  • Students who want to learn Sequelizejs
  • Developers who want to learn how to add documentation for REST APIS