Turso is a cloud provider that specializes in hosting serverless SQLite-like databases (technically it's their fork, libsql). It's a great fit for Notely because it has a very generous free tier, and it's easy to use.
notely-dbHere's the full quickstart guide in the Turso docs, but in a nutshell:
# macOS
brew install tursodatabase/tap/turso
# Linux / WSL
curl -sSfL https://get.tur.so/install.sh | bash
turso auth login
turso db list
turso db shell notely-db
SELECT sqlite_version();
CREATE TABLE test (
id INT,
name TEXT
);
SELECT name FROM sqlite_master WHERE type='table' ORDER BY name;
DROP TABLE test;
This SQL shell is a great way to manually interact with your database for debugging purposes, but our server will of course interact with it programmatically.
Run and submit the CLI tests from the root of your repo.