mirror of
https://github.com/marcusDenslow/terminalShop.git
synced 2026-10-26 02:08:46 +01:00
d7b172843ec21eeb7ca79355bc7c34f500465e46
Auth handler used FirstOrCreate which couldn't see soft-deleted keys (GORM filters by deleted_at IS NULL) but also couldn't insert (unique index still covers deleted rows), returning 500 on every login after a key deletion. Use Unscoped lookup and restore soft-deleted keys. Splash screen also got permanently stuck when auth failed because splashViewInitCmd was never fired, leaving splash.dataReady false.
Terminal Coffee Shop
ssh sshops.uk
it's a coffee shop but in your terminal. you ssh in, browse the menu, chuck stuff in your cart, put in your address and card, and buy coffee without ever touching a browser. your ssh key is your account so there's no login or signup or any of that.
made it because i thought it would be fun to see if you could build a real e-commerce flow that lives entirely in a terminal. turns out you can. heavily inspired by terminal.shop.
running on Hetzner, behind Cloudflare.
tech: Go, Bubbletea, Wish, Chi, PostgreSQL, Stripe, Shippo, Bring
Description
Languages
Go
95.9%
Shell
3%
JavaScript
0.9%
Makefile
0.2%