afshintalebi / nestjs-starter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nest Logo

NestJS starter

A NestJS starter repository is like a ready-made template for starting a new Node.js project with the NestJS framework. It's a pre-configured codebase that includes essential files, folders, and configurations to accelerate the development process. This repository typically comes with best practices already in place, making it easier for developers to set up a robust and scalable server-side application. It often includes features such as user authentication, database integration, and pre-defined API endpoints, allowing developers to focus on building their application's unique functionality instead of spending time on initial setup.

Features

  • SingUp & SignIn
  • Create and refresh JWT token
  • User profile and change password
  • i18n
  • CQRS
  • Event Emitter
  • Swagger
  • Compodoc
  • Gaurds
  • ...

Installation

$ npm i

Running the app

# development
$ npm run start

# watch mode
$ npm run start:dev

# production mode
$ npm run start:prod

# run tests
$ npm run test

# run e2e tests
$ npm run test:e2e

# compodoc
$ npm run compodoc

Postman

You can import Postman collection and environment variables through the files located in the collections folder. After import you can update the value of environment variables if needed.

Artillery

Artillery is an open-source, modern, and powerful performance testing toolkit. It is designed to help developers and testers simulate heavy loads on web applications, APIs, and other services. Artillery allows you to define test scenarios using a simple configuration in YML file, enabling you to simulate various user behaviors, such as making HTTP requests, establishing WebSocket connections, or handling different protocols.

You can see some examples of its usage in the ./Artillery folder.

Tasks

  • E2E tests
    • Jest
    • Postman
  • Add docker-compose file

About


Languages

Language:TypeScript 98.9%Language:Dockerfile 0.7%Language:JavaScript 0.4%