How to use a SQLite Database with Nodejs (web app tutorial part 2)

Published: 31 July 2021
on channel: Chuck Dries
10,638
148

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:    • Node.js Web App in 15 Minutes: forms,...  
Part 3 adds a registration page and goes over hashing passwords    • How to build a user registration syst...  

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...


Watch video How to use a SQLite Database with Nodejs (web app tutorial part 2) online without registration, duration hours minute second in high quality. This video was added by user Chuck Dries 31 July 2021, don't forget to share it with your friends and acquaintances, it has been viewed on our site 10,638 once and liked it 148 people.