NestJS was the topic with which Plansoft launched its HandsOn sessions as part of its SharingCafé series 🎉. During this session, we explored how to build a REST API using NestJS, leveraging TypeScript, a modular architecture, and Dependency Injection.
Attached, you will find the presentation file containing all the key concepts discussed! 😁
📌 Workshop Agenda
🔹 Introduction to NestJS (30 min)
🔹 Hands-on: Building a REST API (40 min)
🔹 Q&A Session (20 min)
🚀 Why NestJS?
NestJS is a modern backend framework, heavily inspired by Angular, that offers:
- ✅ TypeScript for robust and strongly-typed code.
- ✅ Modular architecture, ideal for scalability and maintainability.
- ✅ Dependency Injection, ensuring decoupled and testable code.
- ✅ Native support for WebSockets, SSR, Microservices, and Schedulers.
- ✅ A powerful CLI to speed up development.
🛠 Hands-on: Building a REST API
During the hands-on session, we built a complete REST API, covering:
- Basic NestJS project structure with modules, controllers, and services.
- Core decorators:
@Module
,@Controller
,@Injectable
,@Inject
. - Handling HTTP requests using
@Get
,@Post
,@Put
,@Delete
. - Database connection with TypeORM and SQLite.
- Using middleware, guards, and interceptors for security and validation.
🔗 Useful Resources
If you missed the event, you can follow the session’s coding steps on GitHub:
🔗 Demo repository on GitHub
Would you like a detailed tutorial on how to build a NestJS application with database integration?
📖 Check out my article:
🔗 How to Create Your First NestJS Application
📄 Download the presentation slides:
🔗 Download PDF
If you have any questions or want to learn more, feel free to reach out! 🚀