Talking to other services : RabbitMQ in Danet
Last time we ended on a promise : the day a second service, quite possibly not written in TypeScript, needs to consume your messages, you want a real broker. Today we plug one in.
Last time we ended on a promise : the day a second service, quite possibly not written in TypeScript, needs to consume your messages, you want a real broker. Today we plug one in.
A new package turns a Danet controller into a real gRPC service : same injector, same guards, same exception filters, its own port.
One CLI to rule them all.
Your API is public, and someone is going to hammer your login route until something gives. Ten requests a minute, one guard, one gotcha : ttl is in milliseconds.
Your API runs on your machine. Today we put it on the internet : one command first, then a GitHub Action so you never type it again.
Every article on this blog has done the same thing without explaining it : put a class in injectables, ask for it in a constructor, get an instance. Today we open that box.
Every API eventually needs two more things : something that runs at 3am, and something that runs later. Deno ships both natively, Danet puts a decorator on them.
A WebSocket is a phone call. Sometimes all you need is a newsletter. Danet does Server-Sent Events with one decorator.
Same controllers, same dependency injection, same guards, same port. Only the transport changes.
Your Danet app already serves a Swagger UI. Today we make it say something useful.
We showed you a guard that checks a Basic auth header. Nobody ships that. Today we do it properly, with JWT.
Get ready to use Postgres in Danet in few minutes ! This one is the odd cousin of the database family, and that makes it a great excuse to learn custom injectables.
Get ready to use MongoDB in Danet in few minutes ! Spoiler, you have a lot less code to write than you used to.
Welcome ! Last time, we saw how to build a REST API in Deno using Danet V2. Today, we will add Body validation to it. In V2, you have two ways of doing it.
Welcome, take a seat, and keep your keyboard at hand because today we are building a REST API in Deno using Danet V2. In the end, we’ll also show you how to handle authentication.
Get ready to use Postgres in Danet in few minutes !
Get ready to use MongoDB in Danet in few minutes !
Welcome ! Last time, we saw how to create a REST API in Deno using Danet. Today, we will add Body validation to it.
Welcome, take a seat, and keep your keyboard at hand because today we are building a REST API in Deno using Danet. In the end, we’ll also show you how to handle authentication.