How to use a SQLite Database with Nodejs (web app tutorial part 2) HD
Continuing our Building a Web App in JavaScript tutorial series by learning how to use, store and retrieve information from a SQLite database in Node. Also introduces ESModule import statements and Promises. Part 1 goes over setting up the project: https://youtu.be/X6aeuRNGPas Part 3 adds a registration page and goes over hashing passwords https://youtu.be/hw5y9cjBJ_A Directory 0:00 Introduction 0:44 Enabling ESModules with `esm` 2:45 Installing SQLite (our database) 4:18 What is a Promise? 6:54 Creating our database with a migration 9:35 Retrieving a messages from the database 13:07 Storing new messages in the database SQLite Studio: https://sqlitestudio.pl/ The code I wrote is available on GitHub: https://github.com/chuckdries/message-board-tutorial/