Commit Graph

35 Commits

Author SHA1 Message Date
e2d83aa779 refactor: database update methods use coalesce to omit nil fields 2025-06-27 13:30:03 +03:00
69d55ce060 fix: added missing return statement;
refactor: redundant comments
2025-06-25 16:21:16 +03:00
cbcfb8a286 feat: middleware for request body parsing, validation and authentication;
feat: helper function for getting request info from gin context
2025-06-24 17:31:48 +03:00
c2059dcd6e feat: middlewares for authorization and automatic request parsing;
feat: roles enum
2025-06-24 13:57:39 +03:00
be9aee7145 chore: GPL-3.0 license propagated into *.go files in backend 2025-06-24 01:37:47 +03:00
cfe60cfb8e chore: corrected misleading error descriptions, removed redundant comments 2025-06-24 01:11:49 +03:00
e5d245519a feat: preparing structures for validation features;
feat: config variables for password requirements;
feat: util function for validating passwords
2025-06-24 00:25:59 +03:00
0a00a5ee2b feat: registrationBegin method without email;
fix: missing sqlc query parameter name;
feat: util for generating security codes;
feat: enums package
2025-06-23 16:23:46 +03:00
1b55498b00 refactor: a better DI-friendy logger implementation that doesn't suck 2025-06-23 14:18:25 +03:00
ea3743cb04 fixed: error handling in commit;
refactor: exposed untransactional queries for transactional db helper again but with a clearer name this time since it still may be useful
2025-06-22 12:41:22 +03:00
613deae8e2 feat: db regular and transactional helpers to reduce boilerplate 2025-06-21 20:04:20 +03:00
0c4d618fa4 feat: dbcontext abstraction via dependency 2025-06-21 02:27:23 +03:00
03c072e67b feat: dbcontext implements DBTX interface 2025-06-20 20:32:18 +03:00
8577314875 feat: dbcontext 2025-06-20 20:28:50 +03:00
b72645852b refactor: profile controller;
experiment: figured out a way to add auth middleware to individual methods in controllers, bypassing route group middleware if needed
2025-06-20 17:53:11 +03:00
8007b11731 refactor: made logger a dependency 2025-06-20 16:55:58 +03:00
aab55a143f experiment: successfully implemented dependency injections for controllers and services 2025-06-20 16:14:55 +03:00
654c1eb7b5 feat: prototyping possible interaction of database, controllers, services with auth service 2025-06-20 13:33:06 +03:00
87878f15a3 feat: service/controller prototype 2025-06-19 18:37:19 +03:00
912470b6e2 refactor: manually renamed password fields 2025-06-19 17:16:41 +03:00
49534d46c1 fix: fixed issue with comments in sqlc-generated go code;
refactor: creating/updating login_information takes plain password and hashes it in database;
feat: db query to get user by their login credentials
2025-06-19 17:10:52 +03:00
4e3554346a feat: auth middleware;
fix: backend healthcheck
2025-06-19 14:08:51 +03:00
82a75bd616 chore: swagger comments 2025-06-18 18:34:41 +03:00
b1ef3e06f6 feat: initialized all controllers for release 1;
feat: authentication added to swagger
2025-06-18 18:27:12 +03:00
582c0f15d8 feat: initialized auth controller 2025-06-18 16:16:22 +03:00
ec40c86e4a feat: integrated swagger 2025-06-18 03:21:29 +03:00
b4746cf18f feat: health check for backend in docker-compose;
feat: go dockerfile preinstalls curl;
refactor: reduced go image size by using a 2 stage dockerfile;
refactor: switch frontend dockerfile
2025-06-17 21:34:55 +03:00
367647a8df refactor: controllers and routes 2025-06-17 20:20:03 +03:00
0b03c6ad90 feat: health check 2025-06-17 19:56:43 +03:00
8258ac0ad4 feat: all of sql for release 1 2025-06-16 20:30:58 +03:00
c6a6aa6b91 refactor: improved table structure 2025-06-15 10:48:31 +03:00
8aeb6e19d4 feat: got sqlc to work 2025-06-15 01:18:00 +03:00
cffba45164 refactor: Telegram changed their binary name;
refactor: commented out superproductivity cuz zadolbalo;
2025-06-12 23:25:39 +03:00
77b5134857 chore: removed unneeded todos;
feat: logger flushes buffer on creation
2025-06-11 03:23:14 +03:00
ddd3e40575 feat: basic config, logger, main loop 2025-06-10 17:50:14 +03:00