Sansan
89e884fae9
feat: Implement Session Token System with /api/v1 base path
...
- Add migration 000004 for sessions table and performance indexes
- Create session.sql queries for CRUD operations
- Generate session repository code with sqlc
- Create token auth middleware for Echo framework
- Create token handler with create/delete/cleanup endpoints
- Add /api/v1 router with token authentication infrastructure
- Update dbHelper.go to use Up() instead of Migrate(2)
- Update server.go to initialize token handler
- Existing endpoints remain functional (to be deprecated)
New endpoints:
- POST /api/v1/token - Create new session token
- DELETE /api/v1/token - Invalidate token
- POST /api/v1/token/cleanup - Remove expired sessions
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai >
2026-06-08 20:33:29 +02:00
Sansan
8f8b555ea5
Refactor handlers and update changelog for 5.0.0-Beta
...
Build / build (push) Successful in 48s
- Split IndexHandler into HealthHandler, VersionHandler, and CharacterHandler
- Rename index.go to version.go in backend
- Change VersionData.Changelog from string to []string
- Add changelog entries for issues #16-#23
- Remove TestDB function and related code
- Fix import ordering in several files
Closes #21 , #22
References #16 , #17 , #18 , #19 , #20 , #23
Generated by Mistral Vibe.
Co-Authored-By: Mistral Vibe <vibe@mistral.ai >
2026-06-08 20:08:06 +02:00
Sansan
a446dad7b6
Make pool and poolSong global variables
Build / build (push) Successful in 48s
2026-05-26 20:54:12 +02:00
Sansan
d152ec1f11
fix: use podman-compose (installed via Homebrew) instead of podman compose
Build / build (push) Successful in 45s
2026-05-23 21:57:15 +02:00
Sansan
7a3934babf
fix: use 'podman compose' instead of 'podman-compose'
Build / build (push) Successful in 41s
2026-05-23 20:18:25 +02:00
Sansan
08f539abd9
test: add justfile commands for running integration tests with podman
Build / build (push) Successful in 43s
2026-05-23 20:02:25 +02:00
Sansan
87a1a2d89a
test: reduce testMusic size for faster CI runs
Build / build (push) Successful in 47s
2026-05-23 19:41:10 +02:00
Sansan
1ada52f5f8
test: add test data directories (testMusic and testCharacters)
2026-05-23 01:06:43 +02:00
Sansan
92b82da3af
test: add simple unit tests for backend and logging packages
Build / build (push) Successful in 31s
2026-05-22 22:49:25 +02:00
Sansan
b71072f6c8
fix: remove tailwind from dockerfile and add podman-build command
Build / build (push) Successful in 33s
2026-05-22 22:31:10 +02:00
Sansan
d481be04a7
Fix YAML formatting in Gitea workflows
Build / build (push) Failing after 2m7s
2026-05-21 23:45:23 +02:00
Sansan
870f1787cb
Fix for workflow
2026-05-21 23:35:26 +02:00
Sansan
89c31c2856
Replace all log.Println and fmt.Printf with Zap structured logging
2026-05-21 23:24:55 +02:00
Sansan
f0653489d6
Added some files
2026-05-21 22:25:31 +02:00
Sansan
d0fbba86f1
Remove frontend-build from build command
2026-05-21 09:56:23 +02:00
Sansan
bd0e7f4a8d
Add frontend-build command to justfile
2026-05-21 09:54:12 +02:00
Sansan
b5926e3b31
Fix frontend build by updating dependencies and ESLint configuration
2026-05-21 09:51:14 +02:00
Sansan
37909139de
Add Zap logging framework with structured logging for Echo and Grafana
2026-05-20 22:29:45 +02:00
Sansan
82252ce1ff
Use latest for templ CLI in justfile
2026-05-20 22:08:37 +02:00
Sansan
1dab9d6e7c
Update all dependencies including templ CLI to latest versions
2026-05-20 22:05:39 +02:00
Sansan
b80ad90eab
Add echo-swagger/v2 for Echo v5 compatibility
2026-05-20 22:00:52 +02:00
Sansan
2cff8d16d7
Upgrade Echo framework from v4 to v5
2026-05-20 21:56:06 +02:00
Sansan
12f18ba12c
Replace Tailwind CSS with pure CSS for frontend
2026-05-20 21:30:20 +02:00
Sansan
6e2c381d90
Update generate_godot_openapi.py to pass base_url as parameter to _init
2026-05-20 21:23:09 +02:00
Sansan
efca22834b
Update generate_godot_openapi.py to take file input and generate one file per API tag
2026-05-20 21:19:20 +02:00
Sansan
e57609725e
Add Swag annotations to all handler endpoints for OpenAPI documentation
2026-05-18 21:50:53 +02:00
Sansan
fabd6a6931
Fix OpenAPI endpoint to serve swagger.json directly
2026-05-18 21:46:51 +02:00
Sansan
f03e001bdd
Add swag-generate to justfile and include in build
2026-05-18 21:44:58 +02:00
Sansan
1d77ae491c
Add OpenAPI endpoint at /openapi with Swagger documentation
2026-05-18 21:43:06 +02:00
Sansan
c0d1aaa4d1
Update Echo framework to v5.1.1
2026-05-18 21:36:50 +02:00
Sansan
76aaa884fa
Change domain from sanplex.tech to sanplex.xyz
2026-05-18 21:27:34 +02:00
Sansan
290d79ef5e
Changed how time are sent to frontend during sync
Build / build (push) Successful in 40s
2025-11-15 14:55:03 +01:00
Sansan
aa0b8275e7
Fix so that ending slash doesn't matter for characters path
Build / build (push) Successful in 40s
2025-11-08 12:04:44 +01:00
Sansan
c369b13fae
Added characters to Dockerfile
Build / build (push) Successful in 39s
Publish / publish (push) Successful in 47s
2025-11-08 11:54:51 +01:00
Sansan
bef915ac6d
Fixed gitea script
Build / build (push) Successful in 39s
2025-11-07 21:10:40 +01:00
Sansan
cff777f278
Small fixes to getting character images
Build / build (push) Successful in 44s
Publish / publish (push) Successful in 51s
2025-11-07 20:24:46 +01:00
Sansan
61cab73ffc
Small fix to update song played
Build / build (push) Successful in 50s
2025-10-26 20:40:48 +01:00
Sansan
a6294e46f2
Small changes to sync progress
Build / build (push) Successful in 52s
2025-09-19 22:10:27 +02:00
Sansan
5f91643b4d
Added time to sync and progress respond
Build / build (push) Successful in 1m58s
2025-08-30 13:36:45 +02:00
Sansan
806e88adeb
#1 - Created request to check newest version of the app
...
Build / build (push) Successful in 2m35s
#2 - Added request to download the newest version of the app
#3 - Added request to check progress during sync
#4 - Now blocking all request while sync is in progress
#5 - Implemented ants for thread pooling
#6 - Changed the sync request to now only start the sync
2025-08-23 11:36:03 +02:00
Sansan
0d1c69d95e
Fix 25
Build / build (push) Successful in 42s
Publish / publish (push) Successful in 57s
2025-06-07 22:31:29 +02:00
Sansan
b024c0b747
Fixed go.mod
2025-06-05 13:18:21 +02:00
Sansan
75ee924783
Added little logging
2025-06-05 13:15:15 +02:00
Sansan
f86c33d5e6
Removed gitea-ci
2025-06-05 13:15:15 +02:00
Sansan
ef41d0fa11
Fix 24
2025-06-05 13:15:15 +02:00
Sansan
fd666dd3fa
Fix 23
2025-06-05 13:15:15 +02:00
Sansan
231867de40
Fix 22
2025-06-05 13:15:15 +02:00
Sansan
9a9d318771
Fix 21
2025-06-05 13:15:15 +02:00
Sansan
f06a7fe927
Fix 20
2025-06-05 13:15:15 +02:00
Sansan
0f017407ff
Fix 19
2025-06-05 13:15:15 +02:00
Sansan
29ba39f5fe
Fix 18
2025-06-05 13:15:15 +02:00
Sansan
8d01fe100a
Fix 17
2025-06-05 13:15:15 +02:00
Sansan
2821774215
Fix 16
2025-06-05 13:15:15 +02:00
Sansan
00f0981ce4
Fix 15
2025-06-05 13:15:15 +02:00
Sansan
53a9031cb0
Fix 14
2025-06-05 13:15:15 +02:00
Sansan
85204026bb
Fix 13
2025-06-05 13:15:15 +02:00
Sansan
1ffddd1154
Testar release
2025-06-05 13:15:15 +02:00
Sansan
a4ef66a3f8
Fix 12
2025-06-05 13:15:15 +02:00
Sansan
478de6e3d4
Fix 11
2025-06-05 13:15:12 +02:00
Sansan
052b699025
Even more Actions
2025-06-05 13:11:38 +02:00
Sansan
999668fc9c
Actions tests
2025-06-05 13:11:38 +02:00
Sansan
11e6233753
More gitea actions
2025-06-05 13:11:38 +02:00
Sansan
3f73ea1f5e
Started added gitea actions
2025-06-05 13:10:06 +02:00
Sansan
d15d1422da
Added function to create a new database if it doesn't exist
2025-04-13 18:39:30 +02:00
Sansan
73d85adc42
Updated dockerfile to make sure that it works after all changes
2025-01-28 15:33:25 +01:00
Sansan
d653463f58
Moved around more code. Implemented more sqlc. Added support to generate swagger.
...
Added support for profiling. Removed the pkg module altogether.
Everything except old sync is now using code generated by sqlc.
2025-01-15 16:04:14 +01:00
Sansan
db8214cb02
Added support for fetching character images from the server
2025-01-14 10:01:48 +01:00
Sansan
5b640375c3
Reorganized the code, moved more things to the new part
2025-01-13 16:08:54 +01:00
Sansan
034ba35fbb
Replaced the gin framwwork with echo
2025-01-13 11:57:48 +01:00
Sansan
8e2d22b899
Updated .gitignore and added justfile
2025-01-09 14:34:43 +01:00
Sansan
5577070b8d
Changed addPlayed
2024-12-31 13:25:46 +01:00
Sansan
59ff51393f
Removed logging
2024-12-30 18:01:12 +01:00
Sansan
26c5e6e4ef
Small change on search page
2024-12-29 09:43:20 +01:00
Sansan
a5f8e1b2ba
Added search
...
Added a search page and fixed som error with migration
2024-12-26 14:55:47 +01:00
Sansan
2a537d2398
Fixed error with docker
2024-12-19 12:55:17 +01:00
Sansan
5ab19e16e5
Added a new sync that uses hash
...
Added a new sync that uses hash and sqlc for the queries. Added db
migration. Started adding a config file.
2024-12-19 12:11:20 +01:00
Sansan
8fa93d580d
Added concurrent sync, added search page. Other small changes
2024-10-04 20:19:40 +02:00
Sansan
fafa044c9b
Removed som logging during sync
2024-08-17 19:19:57 +02:00
Sansan
da2829dbe2
Fixed some small bugs that were still present
2024-08-15 20:12:29 +02:00
Sansan
3438ae9e45
Fixed bug with inserting songs
2024-08-05 20:50:49 +02:00
Sansan
9d2c6895ec
Fixed bug with inserting songs
2024-08-05 20:35:16 +02:00
Sansan
892af71e19
Another small bug fix
2024-08-05 19:34:40 +02:00
Sansan
5616b51512
Added check if game not found
2024-07-31 21:57:02 +02:00
Sansan
51a74a9ed1
Fixed some bugs and added Random Classic
2024-07-28 15:58:12 +02:00
Sansan
59f1e2c75c
Upgraded Go version and the version of all dependencies. Fixed som more bugs.
2024-05-18 13:11:15 +02:00
Sansan
a863702b22
Fixed some bugs with songs not found made the application crash. Now checking if song exists and if not, remove song from DB and find another one. Frontend is now decoupled from the backend.
2024-05-18 11:03:03 +02:00
Sansan
16f2e07bd1
Added new opening song
2023-09-03 21:10:39 +02:00
Sansan
62c45c9a8c
Fixed bug with clear search
2023-08-19 17:13:23 +02:00
Sansan
b6f94794fe
Tried to fix som thing with search
2023-08-19 12:24:10 +02:00
Sansan
aae8de8fe9
Fix for not add played to database
2023-01-01 12:47:14 +01:00
Sansan
41c8626ae2
Fixed numbers in playlist
2023-01-01 11:45:44 +01:00
Sansan
8369b5f0a1
Added option to not add played to database
...
Added Search for inspiration
Added song for match point
2023-01-01 01:21:37 +01:00
Sansan
4e876fa28f
Added option to using low played
...
Added Easter egg
2022-12-31 13:50:16 +01:00
Sansan
3fd84d7d63
Added real frontend
...
Made hostname global and easy to change in docker
2022-12-28 21:23:30 +01:00
Sansan
e5b4d2c3f3
Added real frontend
...
Made hostname global and easy to change in docker
2022-06-21 17:48:34 +02:00
Sansan
abdce7b103
The game list is refreshed when synced
2022-04-23 17:42:44 +02:00
Sansan
f7b4005159
Added Game played when adding to que
2022-04-23 13:29:45 +02:00
Sansan
58ff8a64cc
Fixed some bugs
...
* Fixed bug with sync
* Made default list of game randomized
* Added get all games ordered
* Added air for live reload
2022-04-23 11:40:54 +02:00
Sansan
f9d6c24a97
Changed routing framework from mux to Gin.
...
Swagger doc is now included in the application.
A fronted can now be hosted from the application.
2022-01-29 17:52:33 +01:00
Sansan
512fcd0c4f
Merge remote-tracking branch 'origin/master'
2022-01-15 23:23:45 +01:00