1.4 KiB
1.4 KiB
biff-sqlite
This is a modified version of biff-postgres to use SQLite. In addition to replacing PostgreSQL with SQLite, I've also:
- removed tailwind (in favor of pico.css) and recaptcha
- removed all links to unpkg by vendoring all css and js directly
- brought in HoneySQL to replace writing raw SQL
- brought in Migratus to manage migrations
- attempted to silence all kondo warnings
getting started
MY_PROJECT_NAME="dashboard-for-ynab"
git clone https://git.sr.ht/~luciano/biff-sqlite $MY_PROJECT_NAME
cd $MY_PROJECT_NAME
rm -rf .git
git init
git add .
git commit -m "biff-sqlite starter"
clj-kondo --lint "$(clojure -Spath)" --dependencies --parallel --copy-configs
clj -M:dev dev
Run clj -M:dev dev like usual and then connect with a REPL on :7888.
You may want to rename the com.biffweb namespace prefix to your own, as well
as change the strings my_project and my-project everywhere they're present.
That's left as an exercise for the reader at this time.
Deploying to production
I intend to deploy projects built off this template with fly.io but I haven't set everything up for that just yet. Essentially you need to configure a fly volume, make an SQLite db there, then point the #prod DB_URL at it.