Commit graph

48 commits

Author SHA1 Message Date
Sindre Kjelsrud
03a3d3f2d6
🐛 fix cohort-bug
when all questions are answered at least 3 times, it didn't fill the
last cohort with random questions

Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-17 18:52:10 +01:00
Harald Giskegjerde Nilsen
c314388388 💩 tried to write to csv 2024-01-14 21:24:35 +00:00
haraldnilsen
b58ab2f734 🐳 updated docker-compose
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-14 22:18:58 +01:00
haraldnilsen
f320f85d0a 🐳 updated docker-compose
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-14 22:15:35 +01:00
haraldnilsen
fdeece28ab 🗃️ removed questions
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-14 21:57:52 +01:00
haraldnilsen
abea6eca0f 🗃️ updated sql queries with removed questions
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-14 20:55:20 +00:00
haraldnilsen
055fce482a 🚑 critical changes before deployment
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-14 20:48:57 +01:00
Sindre Kjelsrud
ccce73c939
🧑‍💻 add backup solution for data
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-14 15:52:07 +01:00
Sindre Kjelsrud
bda57ee28e
get questions based on answercount
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-14 13:08:36 +01:00
Sindre Kjelsrud
35545070a9
🗃️ gathers random questions on each call
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-14 12:19:37 +01:00
Sindre Kjelsrud
4bbe1ed389
🐛 fix duplicate questions appearing
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-14 11:55:47 +01:00
Sindre Kjelsrud
c0aa51902c
🗃️ insert questions & answers
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-13 20:52:21 +01:00
haraldnilsen
5f1790d8b6 👽 updated DNS
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-13 18:09:39 +01:00
Harald Giskegjerde Nilsen
15ce277167 👽 changed db ref to docker container: 2024-01-13 13:57:05 +00:00
haraldnilsen
c017e8829c 👽 removed cors from main.go
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-13 14:54:29 +01:00
haraldnilsen
1af3122607 🍱 updated insert db statement
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-13 14:50:21 +01:00
haraldnilsen
56f518c11c 🗃️ add db run
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-13 14:39:33 +01:00
haraldnilsen
2a5a366673 🚧 removed ports from docker-compose
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-13 13:09:06 +01:00
haraldnilsen
728df61141 🔧 update nginx config
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-13 12:54:29 +01:00
haraldnilsen
dbc8dcfb1e 🚀 deploy with https
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-13 12:45:35 +01:00
haraldnilsen
6f1db8b64a 🐳 updated Dockerfile for folder structure
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-13 12:00:42 +01:00
haraldnilsen
98f25c1b32 🚚 moved db folder
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-13 12:00:08 +01:00
haraldnilsen
cb25a3b35a 🐳 updated dockerfile 2024-01-12 22:40:56 +01:00
haraldnilsen
006fe93d08 🐳 updated dockerfile 2024-01-12 22:30:39 +01:00
haraldnilsen
bf9334ed1f new endpoint 2024-01-12 22:23:33 +01:00
haraldnilsen
2f7536310c 🐳 updated Dockerfile 2024-01-12 22:06:50 +01:00
haraldnilsen
ee348a9bd4 reverted back to earlier go version 2024-01-12 21:52:46 +01:00
haraldnilsen
0a5a2e4c0b 🚧 working on deploy 2024-01-12 21:43:04 +01:00
haraldnilsen
89334bfeb9 upgraded go 2024-01-12 21:41:53 +01:00
haraldnilsen
97027a31b9 🚧 working on deployment 2024-01-12 21:33:37 +01:00
haraldnilsen
71354a1827 🗃️ new columns in usertable
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-10 20:14:14 +01:00
haraldnilsen
b6123ceb02 🗃️ changed db variables
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-10 19:09:04 +01:00
Sindre Kjelsrud
ed474d4433
🚧 working on test evaluation
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-10 13:31:02 +01:00
Sindre Kjelsrud
113b0fb4b7
reportbug is "finished"
just need to update database!

Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-10 13:26:17 +01:00
haraldnilsen
3fefb35db0 functioning form submission
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-07 21:33:25 +01:00
Sindre Kjelsrud
9f113c1258
🚧 working on endpoint for useranswer submit
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-07 20:48:38 +01:00
haraldnilsen
6a3f5cf825 🚧 working on submitting form
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-07 13:59:45 +01:00
Sindre Kjelsrud
7e00f24fbd
🚧 started on question-form
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2024-01-04 18:23:45 +01:00
haraldnilsen
f5a7571c4b working endpoint for questions
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-12-27 18:00:18 +01:00
haraldnilsen
702e1d8458 🚧 working on get-endpoint 2023-12-27 16:31:43 +01:00
haraldnilsen
191404a9ee 🚧 working on get questions endpoint
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-12-23 18:27:07 +01:00
Sindre Kjelsrud
db0f1f8de0
🚑 added respondentId to POST-endpoint
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-12-23 16:26:00 +01:00
Sindre Kjelsrud
d56893e9dd
🔥 remove unused code
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-12-23 15:54:23 +01:00
haraldnilsen
6d831193f9 defined post-endpoint
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-12-21 20:59:52 +01:00
haraldnilsen
ac946ed99f ♻️ renamed file
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-12-21 20:59:21 +01:00
haraldnilsen
804d6f1d21 🔥 removed api folder
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-12-21 20:58:57 +01:00
Sindre Kjelsrud
dd8f22b043
added POST-endpoint for userform
Co-authored-by: haraldnilsen <harald_998@hotmail.com>
Signed-off-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-12-21 19:31:14 +01:00
haraldnilsen
3b7d4e0021 🎉 init backend
Co-authored-by: Sindre Kjelsrud <kjelsrudsindre@gmail.com>
2023-12-14 20:50:06 +01:00