Databases Storage
Every useful application needs a place to save information — user accounts, posts, settings, scores, or product details. That’s what databases do.
Think of a database as an organized digital filing cabinet that your code can quickly read from and write to.
Why Databases Matter
Without a database, your app forgets everything when you close it. With one, your users can log in, save their progress, or see data that other users have added.
Learning the basics early helps you build real, useful projects instead of just demos.
Two Main Types of Databases
SQL Databases (Structured)
These store data in clean tables with rows and columns. They are great when you need strict rules and relationships between data.
Popular choices: PostgreSQL and MySQL.
NoSQL Databases (Flexible)
These are better for fast-changing or unstructured data like JSON documents, user sessions, or real-time feeds.
Popular choices: MongoDB and Redis (great for caching and temporary data).
Modern Easy Options for Beginners
You don’t always need to run your own database server. Many beginners start with:
- Supabase — open-source Firebase alternative with PostgreSQL
- Firebase — great for quick mobile and web apps
Getting Started
Start simple. Create a small project that needs to remember data — like a todo list or a guestbook. Try storing information using Supabase or Firebase first because they handle most of the complicated setup for you.
Later, you can learn basic SQL queries like SELECT, INSERT, and UPDATE when you’re ready for more control.
Next Steps
Build a small app that saves data (for example, a simple form that remembers submissions). Experiment with both SQL and NoSQL approaches using the free tiers of Supabase or Firebase.
Once comfortable, connect your database to a frontend project from the Live Coding section.
Understanding databases turns your apps from toys into real tools that people can actually use.
