Commit Graph

56 Commits

Author SHA1 Message Date
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
e1df58b434 Merge pull request 'fix: viper not unmarshalling env variables into the struct' (#3) from fix-config into main
Reviewed-on: #3
2025-06-21 16:20:46 +03:00
ad118cc832 chore: removed database url print in config 2025-06-21 16:20:20 +03:00
a9b28c860f fix: viper not unmarshalling env variables into the struct 2025-06-21 16:18:56 +03:00
b2a96c3b84 Merge pull request 'feat-db_abstraction' (#2) from feat-db_abstraction into main
Reviewed-on: #2
2025-06-21 02:28:17 +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
1dc24df037 Merge pull request 'experiment-service_controller_pattern' (#1) from experiment-service_controller_pattern into main
Reviewed-on: #1
2025-06-20 17:57:11 +03:00
0621bad6f8 chore: updated docs 2025-06-20 17:55:42 +03:00
c57b37e88f fix: damaged sqlc query annotation 2025-06-20 17:55:10 +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
7ad1336c88 experiment: swagger is back 2025-06-20 16:34:41 +03:00
9b7335a72e fix: got the gin logs back 2025-06-20 16:25:46 +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
fed517f905 chore: refreshed docs 2025-06-18 21:31:39 +03:00
c787fa929b fix: config for backend;
refactor: docker compose env variables
2025-06-18 21:27:19 +03:00
7a79028aa7 refactor: config 2025-06-18 20:17:04 +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
9e8dd9bf2f feat: healthchecks for postgres, redis, minio;
feat: backend container now depends on postgres, redis and minio (must be healthy);
feat: frontend depends on backend being healthy
2025-06-17 22:20:49 +03:00
577292e31f fix: keydb not running 2025-06-17 21:38:54 +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
6d844f211a refactor: changed docker binds to regular volumes for postgres and minio 2025-06-15 10:52:40 +03:00
c6a6aa6b91 refactor: improved table structure 2025-06-15 10:48:31 +03:00
abeaabbae0 chore: tidy 2025-06-15 01:20:05 +03:00
8aeb6e19d4 feat: got sqlc to work 2025-06-15 01:18:00 +03:00
db8b7c0372 feat: added sqlc and binded schema.sql as postgresql's init script 2025-06-14 17:36:19 +03:00
7b03056203 refactor: ignored .env 2025-06-14 17:35:43 +03:00
cffba45164 refactor: Telegram changed their binary name;
refactor: commented out superproductivity cuz zadolbalo;
2025-06-12 23:25:39 +03:00