magicwallet/Makefile
ekzyis 92876c5011 users, sessions and wallets w/o authentication
* if a request has no session cookie, a new user, session and wallet is created and session cookie is set
* if a request has a session cookie and session exists in db, we will fetch user and wallet from db
* this means that we have a user and wallet during each render without any login required
2024-12-15 21:56:26 +01:00

20 lines
498 B
Makefile

.PHONY: build run
SOURCE := $(shell find fonts lib pages server -type f) main.go
# build binary for deployment
build: magicwallet
magicwallet: $(SOURCE)
tailwindcss -i public/css/base.css -o public/css/tailwind.css
TEMPL_EXPERIMENT=rawgo templ generate -path pages
go build -o magicwallet .
# run code for development (no watch mode yet)
run:
tailwindcss -i public/css/base.css -o public/css/tailwind.css
TEMPL_EXPERIMENT=rawgo templ generate -path pages
go run .
dev:
bash hotreload.sh