Introduction & project preview
There are many NestJS tools at your disposal when building an application, specifically:
Middleware
Guards
Interceptors
Pipes
Exception Filters
In this project, weโre going to explore the purpose of these tools, how they fit together and the order of their execution in the NestJS lifecycle by building a random emoji generator API.
With this understanding, youโll have an excellent foundation for building NestJS applications for the projects ahead.
Here's the Github repo if you want to check out the full code:
https://github.com/tomwray13/emoji-generator
And here's the deployed app if you want to give it a spin in Postman:
emoji-generator-production.up.railway.app
You'll need to pass in the header x-api-key
with value SECRET
to pass the API key authentication.