Your Website Has a Database. Here Is What to Do With It
Save and read back anything on your published website — products, bookings, posts, comments, sign-ups — with a few lines of code and no setup.
Most websites students build are pages that only show things. A database turns yours into one that remembers things: orders, bookings, sign-ups, comments, stock.
Every published TaniX website already has one. There is nothing to install and nothing to pay.
The whole idea in four lines
const posts = TAADB.collection("posts");
await posts.add({ title: "Hello", likes: 0 });
await posts.list({ order: "-likes", limit: 20 });
await posts.increment(id, "likes");
That is it. add, list, get, update, remove, count, increment. Your page calls them; TaniX keeps the data.
What people actually build with it
- A shop — the
productscollection, which the payments system reads prices from - Bookings — a salon or barber saving appointments with a name, phone and time
- A contact list — people who typed their email into your form
- Reviews — customers leaving a star rating, shown back on the page
- A simple blog — posts you add from your own admin page instead of editing code
See it without writing code
Open your website's Admin Panel → Database. Every collection and every row is there in a table. You can add a row, edit one, upload a photo to it, and search it — without touching your website's code at all.
That is also where the shop's products live, so you can run a shop from this page and never write a line of JavaScript.
Two rules worth following
- Never trust the page with a price. Keep prices in the database. The payment system reads them from there on the server, which is why a customer cannot edit a price in their browser.
- Let only the owner change what matters. A collection anyone can write to is a collection anyone can fill with rubbish. Keep products owner-only and leave public writing to things like reviews.