Continuing the Typescript ways, here is how you connect MySQL to nodeJS using express, typescript and promises. I set up a mysql 5.7 server locally on windows for this.
If you do not have a restful api, you can follow the tutorial I previously made here: • Restful API with NodeJS, Express & Typescr...
As always, here is a link to the github repository with all the juicy code: https://github.com/joeythelantern/nod...
Music by: Tesko / prod. THXMOS
Disclaimer: I am by no means a professional. I am just programmer with a lot of experience who would rather teach what he knows for free in his spare time in order to pay it forward. I believe that sharing some of my basic knowledge on this platform can help others get started. There are many ways to program something and the videos you see here are my take on the typescript world 😊.
Chapters:
00:00 Introduction & Configuration
02:45 MySQL Configuration
06:15 Creating the Routes
13:09 Final Thoughts
#typescript #nodejs #mysql #api