A web application demo that implements an interactive photo collage -- visitors can add their own photo! https://collage.cyberia.club
Go to file
forest cca3f2dc25 blah 2021-07-16 16:24:14 -05:00
frontend-build supporting older browsers -- fallback for no BPG and babel build 2021-06-23 13:14:37 -05:00
static blah 2021-07-16 16:24:14 -05:00
user-content OOPS that jpeg thing was not needed. first commit of app 2021-06-12 16:01:37 -05:00
.gitignore health check & fixing text size for invite link in prod 2021-07-15 18:23:30 -05:00
README.md allow updating frontend version without downloading new version of the 2021-07-16 14:19:10 -05:00
adminPanel.go Admin Panel is working, delete posts and ban users. 2021-07-15 17:58:13 -05:00
encoding.go fixing more issues related to text posts 2021-07-16 02:26:50 -05:00
federation.go add nodeid display to frontend 2021-07-16 15:45:32 -05:00
federation.json add LocalSOCKS5Address support for federation client 2021-07-16 14:48:59 -05:00
go.mod add LocalSOCKS5Address support for federation client 2021-07-16 14:48:59 -05:00
go.sum add LocalSOCKS5Address support for federation client 2021-07-16 14:48:59 -05:00
index.css supporting older browsers -- fallback for no BPG and babel build 2021-06-23 13:14:37 -05:00
index.gotemplate.html disable pinch to zoom for mobile 2021-07-15 20:52:35 -05:00
main.go add nodeid display to frontend 2021-07-16 15:45:32 -05:00

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