Nest.js Starter Kit is a comprehensive boilerplate for kickstarting Nest.js projects with ease. With just one command, you can initialize a new Nest.js project with essential configurations and commonly used modules, saving you time and effort in setting up your project structure.
- Quick Setup: Initialize a new Nest.js project instantly with one simple command.
- Modular Architecture: Built with a modular architecture for easy scalability and maintainability.
- Dependency Injection: Utilizes Nest.js' powerful dependency injection system for better code organization and testability.
- JWT Authentication: Integrated JWT authentication for securing endpoints.
- Two-Factor Authentication: Added support for two-factor authentication for enhanced security.
- Role-Based Authentication: Implemented role-based authentication to control access based on user roles.
- Database Configuration: Configured database connection using TypeORM, a popular Object-Relational Mapping (ORM) library for seamless interaction with the database.
- Validation Pipes and DTOs: Included validation pipes and DTOs for validating incoming requests and ensuring data integrity.
- Api-Key Authentication: IImplemented Api-Key authentication for additional security measures.
To create a new Nest.js project using the starter kit, simply run the following command:
npx nestjs-starter-kit project_name
Replace project_name
with the desired name for your project.
After initializing your project using the starter kit, follow these steps to start developing your Nest.js application:
-
Create the Database: Create the database, then add the database name to the env file in the DB_NAME field.
-
Start the Development Server: Run the following command to start the development server:
npm run start:dev
-
Start Coding: Begin developing your Nest.js application! The starter kit comes preconfigured with essential files and directories to help you get started quickly.
Contributions are welcome! If you have any ideas, improvements, or bug fixes, feel free to open an issue or submit a pull request on GitHub.
This project is licensed under the MIT License. See the LICENSE file for details.
Nest.js Starter Kit - Created by Karimov Farda