Skip to content

Conversation

asmit27rai
Copy link
Collaborator

How to run :

  1. Copy .env.example in .env
  2. make docker-run
  3. Login/Register
  4. Visit http://localhost:8080/browser/touchcalc/123/index.html

@asmit27rai
Copy link
Collaborator Author

asmit27rai commented Oct 1, 2025

@seetadev Please have a look
@seetadev Everything is running dockerised.

✅ Updated internal/handlers/webapp.go - Added 8 new handler methods

✅ Created 5 new templates - Complete Flask-compatible UI

✅ Added proper error handling - Comprehensive error templates

✅ Enhanced user experience - Modern, responsive design
@seetadev
Copy link
Owner

@asmit27rai : Thank you. As guided earlier, wish to share if you could maintain the example in your working branch as correctly recommended by Dave.

Will guide you on how to maintain the example in your repository. Dave and I will reference your fork in the go-libp2p example in universal connectivity workshop too.

@rohansen856
Copy link

rohansen856 commented Oct 15, 2025

@asmit27rai I reviewed the updates and tried to test it locally. This is my overall review:

  • the login system seems to work fine:
image
  • but the spreadsheet does not seem to be opening:
image
  • there seems to be a slight bug in the base.html file. replace the title line with this: <title>{{if .APP_TITLE}}{{.APP_TITLE}}{{else}}TouchCalc{{end}}</title>, or else the server fails with thee following error:
go-backend-1  | 2025/10/15 16:01:40 Loading 10 template files from web/templates/*
go-backend-1  | 2025/10/15 16:01:40  - web/templates/allusersheets.html
go-backend-1  | 2025/10/15 16:01:40  - web/templates/amazonwebapp.html
go-backend-1  | 2025/10/15 16:01:40  - web/templates/base.html
go-backend-1  | 2025/10/15 16:01:40  - web/templates/htmltopdf.html
go-backend-1  | 2025/10/15 16:01:40  - web/templates/importcollab.html
go-backend-1  | 2025/10/15 16:01:40  - web/templates/importcollabload.html
go-backend-1  | 2025/10/15 16:01:40  - web/templates/importerror.html
go-backend-1  | 2025/10/15 16:01:40  - web/templates/landing-page.html
go-backend-1  | 2025/10/15 16:01:40  - web/templates/login.html
go-backend-1  | 2025/10/15 16:01:40  - web/templates/register.html
go-backend-1  | panic: template: base.html:6: function "default" not defined
go-backend-1  | 
go-backend-1  | goroutine 1 [running]:
go-backend-1  | html/template.Must(...)
go-backend-1  |         /usr/local/go/src/html/template/template.go:368
go-backend-1  | github.com/gin-gonic/gin.(*Engine).LoadHTMLGlob(0xc0004c7040, {0x1252384, 0xf})
go-backend-1  |         /go/pkg/mod/github.com/gin-gonic/gin@v1.10.1/gin.go:263 +0x2f7
go-backend-1  | main.setupRoutes(0xc0004c7040, 0xc0000b0500)
go-backend-1  |         /app/cmd/server/main.go:91 +0x1591
go-backend-1  | main.main()
go-backend-1  |         /app/cmd/server/main.go:52 +0x49c
go-backend-1 exited with code 2
Gracefully stopping... (press Ctrl+C again to force)
dependency failed to start: container go-backend-touch-calc-go-backend-1 is unhealthy

cc @seetadev

@rohansen856
Copy link

rohansen856 commented Oct 16, 2025

@asmit27rai updated review: though the socialcalc sheet chan be opened via this url after the server start: http://localhost:8080/browser/touchcalc/123/index.html the default sheet does not seem to open at: http://localhost:8080/browser/touchcalc/demo/index.html there might be a slight bug regarding this, as the sheet rendering is fine but the default sheet is malfunctioning

cc @seetadev

@asmit27rai
Copy link
Collaborator Author

@rohansen856 I fixed the issue in the latest commit.
Thanks For Pointing it out.
CC: @seetadev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants