Nestjs Typescript Example

screenshot of Nestjs Typescript Example
nestjs

NestJS Typescript example project

Overview

The Nest framework TypeScript starter repository is a project that provides a starting point for developing applications using the Nest framework and TypeScript. It includes features such as Swagger API documentation, JWT authentication, and Attribute-based Access Control (ABAC).

Features

  • Swagger API documentation: This project uses the @nestjs/swagger package to provide Swagger API documentation. Access to the Swagger UI can be done by visiting http://localhost:8000/docs.
  • Authenticated with JWT by default: All routes in this project require authentication by default. JWT authentication is implemented.
  • Attribute-based Access Control (ABAC): The project uses ABAC to control access to routes. The @AccessControl() decorator can be used to check the user's role before granting access.

Summary

The Nest framework TypeScript starter repository provides a convenient starting point for developing applications with the Nest framework and TypeScript. It includes features such as Swagger API documentation, JWT authentication, and ABAC for access control. With its easy installation process, developers can quickly set up their projects and start building their applications. The project is also MIT licensed, allowing for flexibility in its usage.

nestjs
Nest

A progressive Node.js framework for building efficient, scalable, and enterprise-grade server-side applications with TypeScript/JavaScript.

eslint
Eslint

ESLint is a linter for JavaScript that analyzes code to detect and report on potential problems and errors, as well as enforce consistent code style and best practices, helping developers to write cleaner, more maintainable code.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.