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 |
|
Muyao CHEN
|
a9a6f6ad49
|
makefile: ignore copyright for docker files and migration files
|
2024-10-04 23:38:50 +02:00 |
|
Muyao CHEN
|
ab26e9d585
|
fix: set request id into headers instead of context directly
|
2024-10-04 23:37:48 +02:00 |
|
Muyao CHEN
|
b9d4a58d71
|
db: create user table
|
2024-10-04 21:21:03 +02:00 |
|
Muyao CHEN
|
8e14ccd12a
|
feat: add the core project design
|
2024-10-04 00:01:16 +02:00 |
|
Muyao CHEN
|
dd49035c8e
|
feat: add errno
|
2024-10-03 21:54:16 +02:00 |
|
Muyao CHEN
|
51474ce04d
|
feat: gracefully shutdown impl
|
2024-10-03 21:18:07 +02:00 |
|
Muyao CHEN
|
ffaec01809
|
feat: add cors middleware
|
2024-10-03 20:53:56 +02:00 |
|
Muyao CHEN
|
7886788c35
|
feat(requestid): put the request id to the response
|
2024-10-03 14:06:19 +02:00 |
|
Muyao CHEN
|
ad1d4de7c3
|
feat(requestid): validate uuid
|
2024-10-03 14:01:15 +02:00 |
|
Muyao CHEN
|
e6389f0fd2
|
feat(requestid): handle the case for new uuid
|
2024-10-03 13:53:30 +02:00 |
|
Muyao CHEN
|
d870d2a58d
|
feat(requestid): test for the case where no requestId is given
|
2024-10-03 13:50:14 +02:00 |
|
Muyao CHEN
|
2a52fb6b88
|
feat(requestid): reqID in the header
|
2024-10-03 13:48:36 +02:00 |
|
Muyao CHEN
|
7024c76032
|
feat: Add request id middleware test
|
2024-10-03 13:41:32 +02:00 |
|
Muyao CHEN
|
e45f4d992f
|
fix: remove testing code, fix version print, change watch conf place
|
2024-10-02 23:26:42 +02:00 |
|
Muyao CHEN
|
792ee4ebe0
|
feat: set dev-mode into config
|
2024-10-02 23:12:35 +02:00 |
|
Muyao CHEN
|
d7eba0a5d6
|
feat: set addr from config
|
2024-10-02 22:58:20 +02:00 |
|
Muyao CHEN
|
608f435fb1
|
fix: do some housework
|
2024-10-02 22:48:27 +02:00 |
|
Muyao CHEN
|
62597e4534
|
feat: Add version print
|
2024-10-02 22:21:09 +02:00 |
|
Muyao CHEN
|
08e2d6bd4a
|
feat: Using logging module
|
2024-10-01 23:52:59 +02:00 |
|
Muyao CHEN
|
04fceee835
|
feat: Implement logging module with zap
|
2024-10-01 23:36:22 +02:00 |
|
Muyao CHEN
|
7e876324a2
|
feat: watch config reloading
|
2024-10-01 21:59:51 +02:00 |
|
Muyao CHEN
|
3d1d40b4fc
|
feat: integrate cobra+viper into the app
|
2024-10-01 21:43:44 +02:00 |
|
Muyao CHEN
|
b755bd0e23
|
fix: remove vue ignore added by accident
|
2024-10-01 14:04:49 +02:00 |
|
Muyao CHEN
|
8ae94d19a6
|
feat: use cobra to run the app
|
2024-10-01 13:37:31 +02:00 |
|
Muyao CHEN
|
e13c4a9380
|
docs: the basic parts of a go project
|
2024-10-01 13:36:57 +02:00 |
|
Muyao CHEN
|
0b9f01ba0b
|
fix(makefile): add-copyright target
|
2024-10-01 13:35:49 +02:00 |
|
Muyao CHEN
|
0bd8f060df
|
fix(air): add full_bin command
|
2024-10-01 10:06:04 +02:00 |
|