A web application demo that implements an interactive photo collage -- visitors can add their own photo! https://collage.cyberia.club
frontend-build | ||
static | ||
user-content | ||
.gitignore | ||
adminPanel.go | ||
encoding.go | ||
federation.go | ||
federation.json | ||
go.mod | ||
go.sum | ||
index.css | ||
index.gotemplate.html | ||
main.go | ||
README.md |
graffiti-app
development
First start up the frontend build in watch-mode in one terminal:
cd frontend-build
npm run-script watch
Second, run the go server:
go run .
deployment
SEE https://git.sequentialread.com/forest/bpg
for instructions on how to build bpgenc from source (required).
run it like (for example)
BPGENC_PATH=/home/cyberian/bpg/bpgenc graffiti 8082
Run in background
BPGENC_PATH=/home/cyberian/bpg/bpgenc ./graffiti 8082 > test.log 2>&1 &
This was my Caddyfile entry:
collage.cyberia.club {
reverse_proxy {
to localhost:8082 localhost:8081
lb_policy first
health_uri /health
health_interval 5s
health_timeout 5s
}
log {
output file /home/cyberian/graffiti-access.log
}
}
todo list
-
"This invite code is invalid"
-
need rotate button
-
images only load once they are on-screen
-
save user's view position in localStorage or something
-
rotate posts (capsule colliders)
-
video posts