Commit Graph

87 Commits

Author SHA1 Message Date
Muyao CHEN
20ef75b1aa feat: rework db conn to use sql.DB for better portability
All checks were successful
Build and test / Build (push) Successful in 2m20s
2024-10-15 14:01:53 +02:00
Muyao CHEN
1fb84a3ff4 feat: implement session delete using redis 2024-10-15 10:14:40 +02:00
Muyao CHEN
2fe834fe55 api: add session delete api doc 2024-10-13 22:22:44 +02:00
Muyao CHEN
544ccbe1ca doc: add diary
All checks were successful
Build and test / Build (push) Successful in 2m18s
2024-10-13 22:04:12 +02:00
Muyao CHEN
9290bcf88c fix: make create session works 2024-10-13 21:55:26 +02:00
Muyao CHEN
7ff91bab1d deploy: add redis image
All checks were successful
Build and test / Build (push) Successful in 2m19s
2024-10-13 21:11:23 +02:00
Muyao CHEN
ca2985abb4 feat: add session create 2024-10-13 21:10:33 +02:00
Muyao CHEN
798b9a7695 feat: Add jwt token pkg 2024-10-13 13:36:22 +02:00
Muyao CHEN
71926b2197 feat: Use gin default validator
All checks were successful
Build and test / Build (push) Successful in 2m9s
2024-10-12 23:30:36 +02:00
Muyao CHEN
79739e3751 fix: move testdb/testuser to a mock dir to be clearer 2024-10-12 18:52:27 +02:00
Muyao CHEN
addddb152a fix: move testdb/testuser to usecase dir. repo should only be interface defs
All checks were successful
Build and test / Build (push) Successful in 2m23s
2024-10-12 18:38:55 +02:00
Muyao CHEN
3e09afd4b0 feat: add usecase to check if a user exists 2024-10-12 18:33:19 +02:00
Muyao CHEN
c312b4e2c8 fix(mkfile): fix make sqlc 2024-10-12 18:31:18 +02:00
Muyao CHEN
eee5084821 feat: update openapi 2024-10-12 17:11:16 +02:00
Muyao CHEN
ce3076047a feat: add t.Helper to request helper 2024-10-12 17:09:03 +02:00
Muyao CHEN
9b6282a101 feat: make the request test helper public 2024-10-12 17:07:24 +02:00
Muyao CHEN
a3c2ade9fb feat: create session. (also print the x-rid into the log) 2024-10-11 23:24:29 +02:00
Muyao CHEN
be7f57d5a1 docs: Add design schemas
All checks were successful
Build and test / Build (push) Successful in 2m1s
2024-10-09 23:26:21 +02:00
Muyao CHEN
e1ca08db3a fix(ci): install npm
All checks were successful
Build and test / Build (push) Successful in 1m55s
2024-10-08 23:43:05 +02:00
Muyao CHEN
7209bc9c70 fix(ci): run-p not found
Some checks failed
Build and test / Build (push) Failing after 1m44s
2024-10-08 23:33:34 +02:00
Muyao CHEN
d35b47c7e6 fix: badge
Some checks failed
Build and test / Build (push) Failing after 1m39s
2024-10-08 23:29:00 +02:00
Muyao CHEN
5379895c4c feat: test gitea actions with frontend build and test!
Some checks failed
Build and test / Build (push) Has been cancelled
2024-10-08 23:28:00 +02:00
Muyao CHEN
8e73dc5f0b feat: test gitea actions with a real build!
All checks were successful
Build and test / Build (push) Successful in 2m10s
2024-10-08 23:22:00 +02:00
Muyao CHEN
cc505e5a74 feat: test gitea actions!
All checks were successful
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 1m4s
2024-10-08 21:22:18 +02:00
Muyao CHEN
8f184ba797 feat: add Vue init project 2024-10-08 00:17:36 +02:00
Muyao CHEN
cb7a4bf5c5 fix: change API design to be more RESTful 2024-10-07 23:25:25 +02:00
Muyao CHEN
c1173b4bcc feat: add test case for usecase user.create 2024-10-06 23:21:54 +02:00
Muyao CHEN
b7697bc89b feat: hash the user password 2024-10-06 22:07:51 +02:00
Muyao CHEN
ba8570857d feat: add validate for user signup 2024-10-06 21:54:29 +02:00
Muyao CHEN
344485d082 fix: make user signup work for the minimum
A lot of work is still to be done ...
2024-10-06 18:29:10 +02:00
Muyao CHEN
7b8abf8e5c feat: Create user usecase 2024-10-06 16:18:28 +02:00
Muyao CHEN
4546665461 feat(sql): Add unique constraint to admin's email 2024-10-06 13:44:27 +02:00
Muyao CHEN
2c1beb30f6 fix(db): use a normal pgx.Conn first 2024-10-06 13:33:40 +02:00
Muyao CHEN
43a1d0509c feat(mkfile): build sqlc 2024-10-06 13:18:21 +02:00
Muyao CHEN
b14b8788ab fix: wrong directory for sqlc generated code 2024-10-06 10:29:09 +02:00
Muyao CHEN
4cdfe753c8 doc: add diary 2024-10-06 00:17:45 +02:00
Muyao CHEN
332871d403 feat: route up to the controller level 2024-10-06 00:15:29 +02:00
Muyao CHEN
c00cbf35f1 feat: Integrate db infra 2024-10-05 23:51:11 +02:00
Muyao CHEN
1d753783ce fix: addlicense ignore sqlc dir 2024-10-05 23:23:35 +02:00
Muyao CHEN
a6abdf504d fix: change sqlc output directory 2024-10-05 23:23:09 +02:00
Muyao CHEN
426471d3b1 fix: change db configs in the config file 2024-10-05 23:22:49 +02:00
Muyao CHEN
8edea3f0b8 fix: change helpers to config.go and add some default configs 2024-10-05 23:22:19 +02:00
Muyao CHEN
d7b007b851 feat: introduce sqlc for the datastore layer 2024-10-05 18:58:14 +02:00
Muyao CHEN
8f9e552696 feat: start to use openapi 2024-10-05 18:02:42 +02:00
Muyao CHEN
28bc869c64 feat: Add regitry and adapter level code for user/admin 2024-10-05 16:41:49 +02:00
Muyao CHEN
9094d12c3a fix: abandon google addlicense use marmotedu addlicense 2024-10-05 14:35:36 +02:00
Muyao CHEN
dc75af4dc7 feat: add admin table 2024-10-05 14:12:55 +02:00
Muyao CHEN
1295d15eb3 fix: addlicense bug!!! 2024-10-05 00:09:14 +02:00
Muyao CHEN
4794137d42 feat:add context interface, and change core.writeresponse function to use it 2024-10-04 23:40:45 +02:00
Muyao CHEN
321b4704a2 docker: take the db_data out of the repo 2024-10-04 23:39:35 +02:00