Book Image

Beginning API Development with Node.js

By : Tamas Piros
Book Image

Beginning API Development with Node.js

By: Tamas Piros

Overview of this book

<p>As a web developer you’ve probably heard a lot about APIs and microservices over the last few of years. In this course we’ll show you exactly how to get started with building out your own API, which you can remix and extend to seamlessly integrate with other services. </p><p> </p><p>After a refresher on Node.js we’ll take a look at the asynchronous programming model, which is key to understanding why Node.js is a good fit for API development. We’ll then dive right into building out our example API followed up with coverage on how to create companion unit tests to make sure everything is set for production. This serves as a great starting point for adaptation and extension for personal projects.</p>
Table of Contents (3 chapters)
Chapter 3
Building the API: Part 2
Content Locked
Section 2
Working with the DB Using Knex.js
In this video, we will revisit the previous implementation, this time saving our data in a persistent storage (database). It will also cover authentication, and unit testing and hosting as well as additional good-to-know concepts. We will also learn how to: - Set up the database - Connect to the database