Creating a REST API with Node.js and MySQL

Creating a REST API with Node.js and MySQL
Building a REST API can be difficult, but it doesn’t have to be. In this episode of Serverless Expeditions, Roger Martinez and Martin Omander show you how to build a Rest API with Node.js and MySQL via Cloud Run. Watch as Martin and Roger build an app from the beginning and run into a bug or two as they deploy their application to Google Cloud!

Building a REST API can be difficult, but it doesn’t have to be. In this episode of Serverless Expeditions, Roger Martinez and Martin Omander show you how to build a Rest API with Node.js and MySQL via Cloud Run. Watch as Martin and Roger build an app from the beginning and run into a bug or two as they deploy their application to Google Cloud!

Timestamps:
0:00 - Intro
0:45 - Creating a CloudSQL instance/server
2:15 - Creating and populating a database on the server
5:16 - Creating a simple health check in the REST API
7:05 - Writing code to fetch database content for the REST API
9:38 - Deploying the REST API to Cloud Run
10:54 - Testing the read-only REST API
12:18 - Implementing writing to the database through the REST API
16:50 - Testing the write-part of the REST API

Suggest:

Getting Started with Node.js - Full Tutorial

JavaScript Programming Tutorial Full Course for Beginners

Learn JavaScript - Become a Zero to Hero

Angular and Nodejs Integration Tutorial

How To Create A Password Protected File Sharing Site With Node.js, MongoDB, and Express

Using WebAssembly With Node.js