-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gRPC -> HTTP express #50
Conversation
@@ -0,0 +1,308 @@ | |||
/* tslint:disable */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto-generated.
@@ -0,0 +1,364 @@ | |||
{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
autogenerated
test/cache/leveldb/LOG.old
Outdated
@@ -0,0 +1,14 @@ | |||
2024/03/15-10:34:36.319668 170dff000 Recovering log #68 | |||
2024/03/15-10:34:36.320212 170dff000 Level-0 table #70: started |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added prepopulated test db with 10 records so running cache against server isn't required.
Changes: cleanup add tests add tsoa for openapi generation update example client typing and bug fixes
@@ -51,11 +49,16 @@ | |||
"ts-node": "10.9.1", | |||
"ts-proto": "1.155.1", | |||
"tsc-alias": "^1.8.7", | |||
"typescript": "5.1.6", | |||
"vitest": "^0.34.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What was the issue with vitest?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember I ran into an issue when porting these endpoints, unfortunately I forgot what it was 😅 I thought "What is vitest
getting for us"? So I just replaced with standard jest since we aren't doing anything special in this repo.
Converts from
gRPC
server to standardHTTP REST
.http://localhost:3000/docs
src/swagger/swagger.json
(generated viayarn tsoa-gen
)yarn swagger-typescript-api -p ../src/swagger/swagger.json -o src/api
string
for serialized data rather than bytes (as used with protobuf).