Commit Graph

111 Commits

Author SHA1 Message Date
6aed7cb7fa Add Gitea workflow
Some checks failed
Build and Push Docker Image on Tag / Build and Push Docker Image (push) Failing after 10m54s
2025-01-30 08:56:30 +01:00
5ed16bdab3 Remove allow_different_binary_count 2025-01-23 14:15:34 +01:00
7939a6fde1 Fix deprecated property 2025-01-23 14:12:59 +01:00
e78d0a7276 Add version in archive name 2025-01-23 14:12:16 +01:00
e544ea8426 Fix Makefile 2025-01-23 14:09:18 +01:00
56adeaf1b8 Configure for goreleaser 2025-01-23 14:03:58 +01:00
a72eead432 Fix TODOs in openapi.yml 2025-01-22 20:12:52 +01:00
6e0375c666 Use alpine as base image in Dockerfile. Image size went from 372MB to 17.9MB 2025-01-22 08:13:10 +01:00
ff2a90ed3d Add links for election results after creating 2025-01-22 08:08:28 +01:00
6d92358f79 Fix Makefile and add VOLUME in Dockerfile 2025-01-21 22:24:01 +01:00
e7387be995 Make Chart.js work as local file 2025-01-21 11:38:21 +01:00
a1af7a48b2 Fix maxVoters check and add unit tests 2025-01-21 09:24:51 +01:00
5570dca6c9 Use cgo-free SQL driver and add limit of 100 to maxVoters 2025-01-21 09:17:40 +01:00
1b6fc173d3 Add page for results 2025-01-20 18:08:19 +01:00
37b06cfb9e Use makefile instead 2025-01-20 11:53:48 +01:00
8792b05cca Fix footer link and tailwind source 2025-01-20 10:39:15 +01:00
9a03a9cebd Add script to build 2025-01-20 10:39:00 +01:00
bddae031cc Add index page and link to share more easily 2025-01-20 10:13:59 +01:00
5668b1cd6a Insert election with uuid instead of auto-generated id 2025-01-20 10:04:15 +01:00
729fbecae6 Fix content-type header 2025-01-17 19:34:49 +01:00
fde07b74fa Display error message from JSON to end user 2025-01-17 17:26:24 +01:00
f94e08fc7f Add integration tests for createVotes 2025-01-17 17:11:16 +01:00
5e4a089b89 Fix integration test URI 2025-01-17 16:50:16 +01:00
27d166dad6 Implement page to vote and fix trigger 2025-01-17 16:48:38 +01:00
62562272f1 Add tests for GetElection 2025-01-17 14:55:54 +01:00
410e8f39d3 Add some more tests and implement getElection 2025-01-17 14:49:51 +01:00
60d1bb382c Write TestGetElectionResults_NotFound 2025-01-17 13:59:37 +01:00
afac0f8f91 Change copyAllCodes to async function 2025-01-16 16:36:25 +01:00
70a0cd7d3b Add voterIdentities to copy again and fix issue if there was no body in the response (in the case of unknown voters election) 2025-01-14 20:07:02 +01:00
f784eb474f Fix maxVoters minimum value and value of boolean areVotersKnown 2025-01-14 19:49:12 +01:00
96133f00de Add variable for baseUri 2025-01-14 17:32:44 +01:00
1428534dc3 Write test for getElectionResults 2025-01-14 17:28:45 +01:00
66cdd0086c Fix tests 2025-01-14 17:00:29 +01:00
c095e9ae0b Implement getElectionResults 2025-01-14 16:52:20 +01:00
13c2693bdb Add caching middlware for static files 2025-01-14 13:43:16 +01:00
82aa5ef57d Remove unused CSS files 2025-01-14 13:31:55 +01:00
07ceec4db2 Use TailwindCSS 2025-01-14 13:31:33 +01:00
e102d01bff Remove comments 2025-01-14 12:51:53 +01:00
c878b33649 Add error returned from the request 2025-01-14 12:51:29 +01:00
2847c53bca Add doc for HTTP 400 on vote creation 2025-01-14 12:44:06 +01:00
3c2d45083f Put API behind /api 2025-01-14 12:40:30 +01:00
88790bdec2 Convert to Alpine.js frontend 2025-01-14 12:35:32 +01:00
f22710464b Add TODO 2025-01-13 22:10:12 +01:00
22a6593e3a Add busy_timeout 2025-01-13 22:00:00 +01:00
26ae032fd6 Remove concurrency 2025-01-13 21:59:48 +01:00
b9d6d25245 Add return 2025-01-13 21:37:28 +01:00
e8ced857e0 Remove comments 2025-01-13 20:41:41 +01:00
2f13d7a76a Display election ID in the response and insert voters in a goroutine 2025-01-13 20:41:33 +01:00
7ab27a947e Remove todo because fixed 2025-01-13 20:07:18 +01:00
d1225d3258 Fix slow-ass code 2025-01-13 20:06:55 +01:00