1.0.0 • Published 3 months ago

nestjs-jump-start v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 months ago

Nest Boilerplate

Welcome to the Nest Boilerplate project! This is a boilerplate template designed to kickstart your development with NestJS, a powerful and extensible Node.js framework. Whether you are building a small API or a complex microservices architecture, this starter provides a solid foundation and best practices to help you get started quickly

Features

  • Modular Structure: Follows a modular architecture to organize your code into reusable and maintainable modules.
  • Dependency Injection: Leverages NestJS's built-in dependency injection system for better code organization and testability.
  • Database Integration: Includes support for popular database MongoDB
  • Authentication: Implements a basic authentication system using JWT (JSON Web Tokens).
  • Swagger Documentation: Automatic API documentation using Swagger UI for easy testing and exploration.
  • Testing: Unit and integration tests set up using Jest for ensuring code reliability.
  • Environment Variables: Utilizes environment variables for configuration to enhance flexibility.
  • Logging: Integrated logging with Winston for better debugging and monitoring.

Installation

Clone this repository:

git clone https://github.com/your-username/nest-js-starter.git

Install dependencies:

npm install

Set up your environment variables by creating a .env file based on .env.example. Choose and configure your preferred database settings in the configuration files.

Run the application:

npm run start:dev

Access the Swagger documentation at http://localhost:3000/api/docs to explore the API.

Commands

There are couple of Commands already pre-configured for different purposes. Following are few of them.

CommandDescription
buildTriggers the production build
startStart the project locally
start:devStart the project with DEV mode
start:debugStart the project with DEBUG mode
start:prodStart the project with PROD mode
format:checkWill check the code format
format:writeChanges the format to match with required format
lint:checkLint check
lint:writeWrite the lint changes
testRun test cases
test:watchRun tests with watch mode enabled
test:covRun tests with coverage
test:debugRun test cases in debug mode

Authors

License

MIT

Contribution

Contributions are welcome! If you have ideas for improvements or new features, feel free to open an issue or submit a pull request.

Happy coding with Nest JS Starter! 🚀