A boilerplate repository for new projects based on the latest Nx, Angular, and NestJS versions.
Explore the docs »
Report Bug
·
Request Feature
Table of Contents
After publishing a series of blog posts on creating a full-stack project with this same stack, I decided to publish a generic boilerplate for future use. This template has saved me hours of re-implementing the same logic for authentication, user management, Swagger documentation, and more.
Name | Status | Details |
---|---|---|
REST API | Complete | Powered by NestJS |
Frontend | In Progress | Angular web client |
Authentication | Complete | JWT support via Passport |
Authorization | Complete | Simple role-based support (admin/user) |
User Registration | Complete | Local registration via email/password Social OAuth support for Google |
User Management | Complete | Email verification Forget/password reset |
Database Integration | Complete | TypeORM |
Data Validation | Complete | Infrastructure: Shared, core libraries maintain data structures between libraries Backend: class-validator , Swagger models, database logic, and custom services |
Configuration | Complete | .env file handles all base configurationEnvironment-based configuration can be used for builds and pipelines |
CI/CD | Complete | Distributed CI runners powered by Nx Cloud handle linting, testing, and builds |
Error Handling | Complete | Integration with Sentry |
To create your own repository from this codebase, click the "Use this template" button in the GitHub UI.
A few things are needed before working on this project:
-
yarn
> npm install yarn@latest -g # alternative installation method > brew install yarn
-
nx
> npm install nx@latest -g
Optional Integrations:
- Sentry DSN
- Google OAuth Client ID/Secret
- SMTP settings
See GETTING_STARTED.md for steps on configuring your workspace and customizing your application.
See TODO.md for details on planned features and ideas
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE
for more information.
Wallace Daniel - The Full Stack Engineer - [email protected]
Project Link: https://github.com/wgd3/nx-nestjs-angular-boilerplate
This repository results from my experiments with different repository structures, best practices, and framework integrations. Part of the evolution of this repository included chunks of code copied from, or inspired by, other repositories.
- nestjs-api-boilerplate-jwt
- awesome-nest-boilerplate
- nestjs-boilerplate
- nestjs-starter-rest-api
- domain-driven-hexagon
- type-safe-full-stack
This list continually evolves; more will be added as the repository evolves!