quick question on the api gateway you are using typescripts interfaces generate when the protoc command was run, so my question is what of instances when the api gateway and the microservices are on different environment or machine. how do you assess the types generate on the microservices ?
@JonPeppinck2 ай бұрын
This is a concern I address in the NestJS RabbitMQ playlist. This gRPC is rather simple. However, it is likely you will want a shared library which gets bundled into each microservice. This is typically quite lightweight, perhaps auth related interfaces and helper functions.
@miguecast Жыл бұрын
Hey, great tutorial!!! Thank you! 🎉🎉
@JonPeppinck Жыл бұрын
Thanks so much!
@MinhHiepLe-x6m7 ай бұрын
I want to build api gateway for my side project. Do you think grpc is a greate choice to gateway communicate with other service (replace rest api) ?
@esmaeelbabaee564611 ай бұрын
Thank you Mr Jon, Very well.
@JonPeppinck11 ай бұрын
Thanks so much!
@dimwel26 күн бұрын
very interesting topic, but the project not start on windows... [Nest] 17428 - 12/06/2024, 1:31:41 PM ERROR [ClientProxy] ENOENT: no such file or directory, open 'C:\webdev est_tmp estjs-grpc\dist\apps\todo.proto' Error: The invalid .proto definition (file at "C:\webdev est_tmp estjs-grpc\dist\apps\todo.proto" not found)
@dimwel26 күн бұрын
ok i tried to figure it out when i first run comand 'npm run build api' , then 'npm run build todo' and after that 'npm run start api' , and in separate terminal 'npm run start todo' its working without errors and in dist/apps/api and in dist/apps/todo i have the same file todo.proto
@dimwel26 күн бұрын
oh ok, so i just run 'npm run start:dev api', and in separate terminal 'npm run start:dev todo' its working fine without errors
@regilearn2138 Жыл бұрын
would like do request a video on how to do microservices project in MERN stack
@JonPeppinck Жыл бұрын
Hi Regilearn, I have two playlists you may be interested in. The first is the Facebook Messenger clone which is created with NestJS Microservices and react native. The second is a Amazon clone / e-commerce shop which uses NestJS and react.
@regilearn2138 Жыл бұрын
appreciate your reply,I am looking something next,js or react project MERN stack not NEST js@@JonPeppinck
@vsagarprasad65277 ай бұрын
protoc --plugin=protoc-gen-ts_proto=./node_modules/.bin/protoc-gen-ts_proto --ts_proto_out=./ --ts_proto_opt=nestJs=true ./proto/sample.proto this command is giving error: --ts_proto_out: protoc-gen-ts_proto: %1 is not a valid Win32 application.
@AmaarHassan-lb7vv5 ай бұрын
Firslty, make sure you have downloeded the correct version as per your OS. E.g. it may be that you are using 32 bit on a 64 bit S or vice versa. Secondly, make sure that the env variables correctly shows the path to where the protobuff was downloaded Thirdly, try making the following change sin the command. Use Absolute path for the node_modules reference i.e. with Directory name etc. Then add .cmd at the end i.e. protoc-gen-ts_proto.cmd