How To Use MySQL with NodeJS



How To Use MySQL with NodeJS

How To Use MySQL with NodeJS

Hey what is up everyone, today we are looking at using MySQL and NodeJS to work with and store data in our NodeJS apps. This is a very simple tutorial aim toward programmers using Node and want to connect their app to a MySQL database instance. In this video we will build a very basic API to create and read posts from a MySQL database.

Hope you enjoy this video! Let me know by giving this video a thumbs up and subscribing for more content coming soon.

THANKS FOR 5K SUBS PEOPLE YOU ARE AMAZING NEVER SAW THIS COMING!💙

Video Links
==========
MySQL
https://dev.mysql.com/downloads/

NodeJS
https://nodejs.org/en/download/

Visual Studio Code
https://code.visualstudio.com/

mysql2
https://www.npmjs.com/package/mysql2

sequelize
https://sequelize.org/

GitHub Links are in the first PINNED comment!

My personal website
=================
https://www.thefullstackjunkie.com

Join my discord channel 🤓✌
https://discord.gg/4cfWNxMB

Timestamps
===========
00:00 Intro
00:52 Technologies walkthrough
04:00 Cloning Starter files
04:40 Folder walkthrough
07:53 MySQL Workbench Create New Database
14:00 Connecting Node with MySQL Database
18:30 Testing first SQL query from Node
21:00 Building out rest of little API
27:52 Building Post Model to use MySQL connection pool
45:11 Testing out final routes of API
47:35 Outro

Comments are closed.