Lessons 11-15 | Full-Stack Module

Databases: Store Data Permanently

Use SQLite to understand tables, records, and persistence without adding unnecessary infrastructure.

Lesson 1440 mincourse modulepaid enrollment

Learning objective

Understand tables, rows, basic queries, and persistence.

Lab outcome

Store and retrieve leaderboard records with SQLite.

Module milestone

Build a small full-stack leaderboard with persistent data.

Phase 1

Mission briefing

Before You Study (5 mins)

Lesson focus: Variables in code forget everything when the computer turns off. Databases never forget. We will use SQLite, a database that lives in a single file. Zero setup, infinite memory.

What you should have ready:

  • Your Express server
  • sqlite3 installed (we'll do this)

Quick Concepts

TermSimple Meaning
Database (DB)A digital filing cabinet
TableA specific drawer (e.g., "Scores")
RowA single folder (e.g., "Divyanshu: 100")
SQLThe language we use to talk to the DB
SQLiteA simple DB that requires no installation

Think About

Before studying, consider:

  1. Contact list on your phone = Database.
  2. Instagram feed = Database.
  3. Your bank balance = Database. Everything is a database.

By the End

After this lesson, you'll:

  • ✅ Create your first Database table
  • ✅ Save a score permanently
  • ✅ Retrieve scores even after restarting the computer!

Never forget! 💾