Application Programming Interfaces
The place where you persist data (See Also: persistence, storage)
For mostly static binaries, use IPFS (fixed paths on the filesystem is ideal. Need a place to safely track metadata)
For documents that change, use git and .md
For relationships and metadata, use a real database. Postgres seems hard to beat for this.
Schema & Models
DBs are Databases.
Databases tie in closely to the API side.
When it comes time to deploy databases, separate containers are ideal. See also system-architecture notes on web-ui-api-db:
Big files don't change often.
Generate their id with IPFS
typicode/json-server: Get a full fake REST API with zero coding in less than 30 seconds (seriously)
typicode/lowdb: Simple to use local JSON database (supports Node, Electron and the browser)