npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

nestjs-starter-kit

v1.2.1

Published

NPM command to scaffold Nest Starter Kit

Downloads

19

Readme

Nest.js Starter Kit

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.

Features

  • 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.

Preconfigured

  • 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.

Installation

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.

Getting Started

After initializing your project using the starter kit, follow these steps to start developing your Nest.js application:

  1. Create the Database: Create the database, then add the database name to the env file in the DB_NAME field.

  2. Start the Development Server: Run the following command to start the development server:

    npm run start:dev
  3. Start Coding: Begin developing your Nest.js application! The starter kit comes preconfigured with essential files and directories to help you get started quickly.

Directory Structure

The directory structure of the project generated by the starter kit is as follows:

├──src       ├──config       ├──app             ├──common                   ├──decorators                   ├──docs                   ├──exception             ├──constants             ├──modules                   ├──auth                   ├──shared                   ├──user             ├──app.module.ts       ├──database

  • src/: Directory containing the source files of your Nest.js application.
  • config/: Directory for configuration files.
  • constants/: Directory for constant files.
  • dto/: Directory for Data Transfer Object files.
  • entities/: Directory for entity files.
  • guards/: Directory for guard files.
  • middlewares/: Directory for middleware files.
  • modules/: Directory for module files.
  • services/: Directory for service files.
  • types/: Directory for type definition files.
  • database/: Directory for database-related files.

Contributing

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.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Nest.js Starter Kit - Created by Karimov Farda