This seed is based off of the awesome framework that the NestJS team has put together. We have gone through and created an example app that uses all the best practices that we want to enforce.
Feel free to clone this repository to get your app started
Install the Starter Project with Git:
$ git clone https://github.com/teammaestro/nestjs-seed project
$ cd project
$ npm i
$ npm start
Nest is a framework for building efficient, scalable Node.js web applications. It uses modern JavaScript, is built with TypeScript (preserves compatibility with pure JavaScript) and combines elements of OOP (Object Oriented Progamming), FP (Functional Programming), and FRP (Functional Reactive Programming).
Under the hood, Nest makes use of Express, allowing for easy use of the myriad third-party plugins which are available.
- Built with TypeScript (compatible with pure JavaScript + Babel)
- Easy to learn - syntax similar to Angular
- Familiar - based on well-known libraries (Express / socket.io)
- Dependency Injection - built-in asynchronous IoC container with a hierarchical injector
- Modular - defines an easy to follow module definition pattern so you can split your system into reusable modules
- Reactive microservice support with message patterns (built-in transport via TCP / Redis, but other communication schemes can be implemented with
CustomTransportStrategy
) - Exception layer - throwable web exceptions with status codes, exception filters
- Pipes - synchronous & asynchronous (e.g. validation purposes)
- Guards - attach additional logic in a declarative manner (e.g. role-based access control)
- Interceptors - built on top of RxJS
- Testing utilities (both e2e & unit tests)
Kamil Myśliwiec |
Daniel Billingslea | John Pinkster |