Introduction to NestJs — Build a Showcase Server Efficiently
Introduction
NestJs is a Progressive JavaScript framework for Node.js. It’s based on TypeScript and the most advantage of NestJs is providing an abstract layer for improving the architecture for Node.js applications.
- It’s compatible with other Node.js frameworks. People are enabled to integrate the instance with Express.js or Fatisify.js inside the NestJs applications
- NestJs Use a lot of design patterns here like observable, dependency injection, etc. We could find it seems like patterns in Angular.js
- Combines OOP(Object-Oriented Programming), FP(Functional Programming), and FRP(Functional Reactive Programming). NestJs is an option for people who are familiar with the C# and Java but prefer JavaScript to develop APIs
Build showcase server for rendering
For showing the demo static pages, there are a few common choices like Codepen, Sandbox, or Github page, etc. However, it’s not easy when we want to browse them from everywhere.
So an idea is to create a server for retrieving and rendering static files from somewhere and it’s suitable to choose Node.js for building the server. There are a few steps for this service with the following simple structure.