7ff66a7cc2f6d985e5e6fc600bf58300c60ec4a5
Simple Todo API (Demo)
This is a minimal, runnable RESTful API aligned with the plan. It uses Gin and an in-memory store.
Run
go run ./main.go
The server listens on :8080.
Frontend
The UI is served from local files under test/web at /:
open http://localhost:8080/api
Quick Demo
curl http://localhost:8080/api/health
curl -X POST http://localhost:8080/api/v1/auth/login
curl -X POST http://localhost:8080/api/v1/tasks \
-H 'Authorization: Bearer demo' \
-H 'Content-Type: application/json' \
-d '{"title":"Learn Gin","priority":1,"tags":["demo"]}'
curl http://localhost:8080/api/v1/tasks \
-H 'Authorization: Bearer demo'
Notes
- Data is in-memory only; restart will clear it.
- Auth is a placeholder; any non-empty
Authorizationheader is accepted.
Description
Languages
Go
33%
Vue
31.1%
CSS
23.3%
JavaScript
6.5%
HTML
5.2%
Other
0.9%