Commit Graph

13 Commits

Author SHA1 Message Date
Manuel dc8c7bd2b6
Support for multiple games and keys per game, refactor, tweaks
* Update editorconfig for Dockerfile formatting
* Update Dockerfile to strip debug symbols
* Support pushing multiple highscores and use of Options to support traditional API mode
* Support sending and retrieving different highscore lists for a game based on a key
* Support retrieving partial highscore lists for client side pagination
* Use of vweb_global attribute for better performance (No mutex/shared variable) and immutability
* Support for a verification key that is used for checksumming score data with a private key to raise the difficulty for potential cheaters
* Add Logger for nicer console output and severity distinction
* Use of transactions in database for higher reliability
* Additional error checking for improved error recovery and reliability
2023-10-02 14:05:46 +02:00
Manuel 674aa90c49
Change vlang build image, use latest V ORM returning Results 2023-04-07 10:48:02 +02:00
Manuel e6f94b8e3b
Update editorconfig & formatting 2023-02-02 14:15:17 +01:00
Manuel bfd1d7c5ba
Add gitattributes 2023-02-02 14:00:00 +01:00
Manuel a011f54361
Minor tweaks & changes for latest vlang version 2023-02-01 21:00:00 +01:00
Manuel 24a9cdc8cf
Restructuring, Only set CORS headers if origin header set 2023-01-15 20:00:00 +01:00
Manuel d38cb1f9db
Handle CORS, Additional error cases, Simplified database 2023-01-12 19:34:28 +01:00
Manuel 859ac51f1a
Formatting again using vfmt 2023-01-11 19:08:24 +01:00
Manuel 318b1d3dc8
Formatting, Simplified status, Return inserted score 2023-01-11 19:00:00 +01:00
Manuel 20fecb22da
Fix typo and use correct sqlite package 2023-01-10 19:00:00 +01:00
Manuel 7749b7c159
Several improvements
* Make Dockerfile build and run correctly on alpine, fix missing sqlite
* Make config shared to avoid reading from file on each request
* Correctly handle Signals to gracefully stop database connection and
  to speed up shutdown, relevant for docker deployment
* Correctly check for sqlite error on table creation
2023-01-10 11:00:00 +01:00
Manuel c03f949344
Add compose and bake.hcl 2023-01-09 22:00:00 +01:00
Manuel ba7938dcf4
Initial commit 2023-01-07 13:00:00 +01:00