03 - Set Up NestJS Injectable Service
Today we'll create a NestJS provider which will be injected into our Polls Module, or feature, of the application. We'll also learn a little bit about why we might want a service layer.
Sorry about the weird audio in the video. I'll try to figure that out for next time!
The link to the working repo can be found at: https://github.com/JacobSNGoodwin/ranker-course
0:00 - Introduction and Review
1:20 - Why we want a service
4:00 - Creating the polls service and providing it to the Polls Module
7:35 - Adding some application logic to service methods
10:35 - Accessing provided service in Polls Controller
13:40 - Postman Testing
Next time, we'll work on creating a Redis Module to inject an IORedis client to use in a Polls Repository.
نظرات