You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introducing the NestJS boilerplate, a comprehensive and modular starting point for your next Node.js project! Built with the latest version of NestJS, a powerful and flexible framework for building efficient and scalable server-side applications, this boilerplate includes support for TypeScript, PostgreSQL, and JWT authentication out of the box. Other features include configuration support with Dotenv, RBAC and CBAC for authorization, TypeORM for database interactions, Swagger for API documentation, and Docker Compose for container orchestration. Additionally, the boilerplate comes with pre-configured linting tools and secure HTTP headers with Helmet. Simply clone the repository, install the dependencies, and start building your next great idea!
Introducing the NestJS boilerplate, a comprehensive and modular starting point for your next Node.js project! Built with the latest version of NestJS, a powerful and flexible framework for building efficient and scalable server-side applications, this boilerplate includes support for TypeScript, PostgreSQL, and JWT authentication out of the box. Other features include configuration support with Dotenv, RBAC and CBAC for authorization, TypeORM for database interactions, Swagger for API documentation, and Docker Compose for container orchestration. Additionally, the boilerplate comes with pre-configured linting tools and secure HTTP headers with Helmet. Simply clone the repository, install the dependencies, and start building your next great idea!
8
29
9
-
**Built-in Features**
30
+
## 🚀 Features
10
31
11
32
- 📱 **NestJS** — latest version
12
33
- 🎉 **TypeScript** - Type checking
@@ -23,9 +44,6 @@ Introducing the NestJS boilerplate, a comprehensive and modular starting point f
23
44
- 📏 **ESLint** — Pluggable JavaScript linter
24
45
- 💖 **Prettier** - Opinionated Code Formatter
25
46
- ✨ **Commitlint** - Lint your conventional commits
26
-
27
-
**GitHub actions**
28
-
29
47
- 🕵️♂️ **Code Scanning** - Code scanning with CodeQL
#1: Client - The user/client who sends the request to the server for login or register.
15
+
#2: AuthController - The controller that handles the incoming requests from the client, performs necessary validations and calls the AuthService to perform the login or register operation.
16
+
#3: AuthService - The service layer that processes the login or register request and performs necessary business logic such as authentication, generating JWT token, and validating user information using the UsersService.
17
+
#4: UsersService - The service layer that communicates with the database and fetches or modifies user information.
18
+
19
+
#1: C->>+AC: Sends login or register request to AuthController.
20
+
#2: AC->>+AS: Calls login or register function of AuthService.
21
+
#3: AS->>+US: Calls UsersService function to fetch or modify user information.
22
+
Note over US: UsersService communicates<br>with the database to fetch or<br>modify user information.
23
+
24
+
alt Valid user
25
+
#4: US-->>-AS: Returns user information.
26
+
#3: AS-->>-AC: Returns success message and JWT token.
27
+
#2: AC-->>-C: Returns success message and JWT token.
28
+
Note over C: Receives success message and JWT token.
0 commit comments