NocoDB for Mere Mortals
A spreadsheet is the friendliest way ever invented to keep a list — and one of the worst places to keep one for long. The file lives on one machine, two people editing means two different files, and the moment a list wants to refer to another list ("which shelf is this drill on?") the spreadsheet starts to strain. NocoDB keeps the friendly part — the grid of rows and columns, the dropdowns, the colour — and puts a real database underneath it, served from a machine you control. Many people can open the same table at once, tables can point at each other properly, and everything in the grid is also available through an API, a programming interface, because the grid was never the only door in.
This guide explains what NocoDB is, how to install it, and how to build with it: a base (its word for one project's home), tables with honestly typed fields, records going in and out, and the feature that justifies the whole tool — link fields that tie tables together, with lookups and rollups that read across the link. It covers views (grid, gallery, kanban board), sharing a view with a link and no account, the API tokens that let scripts in, and the roles that decide who may change what.
The lab behind this guide ran the real thing: the official standalone binary of NocoDB 0.301.5 on a small Linux machine, driven entirely through its REST API, the same interface the web app uses. In it the lab built a small household inventory — items, and the locations they are stored in — created every field type the centrepiece needs, linked the tables, watched a rollup count and a lookup list answer on their own, shared a view and read it back without any login, created an API token and used it, invited a second user as a viewer and watched the server refuse their edit in writing, and opened the database file afterwards to see exactly what a backup has to copy.
What the lab could not do, it did not
fake. There was no database server on
the machine, so NocoDB's other half —
pointing it at an existing PostgreSQL
or MySQL database — is taught from the
documentation, with the lab's one
attempt kept verbatim (the server
refused the SQLite file the lab offered
it, and chapter 11 shows the message).
Click-by-click use of the web app is
described from the project's
documentation; every claim about
behaviour was tested through the API
instead. criteria.md keeps the full
ledger of what was run and what was
only read.
What this guide covers
- What NocoDB is — the mental model: a friendly grid over a real database, on your own machine, and how that differs from a spreadsheet file
- The moving parts — the server, the web app, the metadata database, workspaces, bases, sources, tables, fields, records and views — and which part holds what
- Installing NocoDB — the standalone binary this lab ran, the Docker and npm routes, and the three settings that decide where everything lives
- Your first base — the first account is the super admin, the sample base you get for free, and making a base of your own
- Fields — giving a table its shape — the full field-type list, honestly labelled by which ones this lab exercised, and the system fields every table quietly carries
- Records in and out — adding, reading, filtering, sorting, changing and deleting rows — and one bug this lab found and verified twice
- Links, lookups and rollups — the relationship machinery: two tables tied together, a count that keeps itself, and values read across the link
- Views and sharing — grid, gallery and kanban views of the same rows, and the share link that lets anyone read a view with no account at all
- The API and tokens — everything the web app can do, a script can do: API tokens, the rules of the REST API, and the documentation the server writes for your tables
- People and permissions — accounts, base roles from owner to viewer, and the refusal a viewer gets when they try to edit
- Pointing NocoDB at a real database — the product's other half: bases whose tables already exist in PostgreSQL or MySQL, taught from the documentation with the lab's attempt shown
- Automations, webhooks and scripts — telling the outside world when a record changes, and small programs that run inside the base
- Backups and keeping it — with the default setup, one file is the whole installation — here is the proof, and what changes when the metadata moves to a real database
- Recipes — a club membership list, a stock check that adds itself up, a public form for collecting RSVPs, and reading your base from a script at night
- The neighbours — Airtable, Baserow, Grist, PocketBase, Datasette and the humble spreadsheet: what each does that NocoDB doesn't, and vice versa
- Limits — the binary the docs send you to may not be the newest version, one database file holds everything until you move it, and the features that belong to the paid plans
- Troubleshooting — the first start that dies on a missing folder, the insert that reports an error after succeeding, the link that silently stays empty, and the 403s that are the system working as designed
- Glossary — the terms, collected in one place
What it doesn't cover
Building public web apps on top of NocoDB, or using it as the backend for a product — people do both, but that is application development, with its own guides. The paid cloud service and the enterprise edition get fair descriptions where they differ, but nothing here depends on them, and nothing here was run on them. Performance tuning for very large tables is named as a limit, not taught: this lab's tables hold eleven rows between them.
How to use this guide
Read chapter 1 for the model, and
chapter 2 before installing anything —
knowing which part holds what turns
later confusion into a named problem.
Chapters 3 and 4 get you a running
server and a base of your own; chapter
7 is the one to read slowly, because
links are the reason this tool exists.
The lab's transcripts live in
nocodb-lab/transcripts/; they are the
evidence for every claim the chapters
make, redacted only where a password or
token would otherwise appear.
Part of the series
This guide is one of the For Mere Mortals guides: plain-language guides to the tools programmers and makers use.
Related guides:
- SQLite for Mere Mortals
- PostgreSQL for Mere Mortals
- SQL for Mere Mortals
- LibreOffice for Mere Mortals
- APIs for Mere Mortals
License
The writing in this guide is licensed under CC BY 4.0. Code examples and lab scripts are licensed under the MIT License.