Skip to content

wildandhya/nestjs-boilerplate

Repository files navigation

NestJS Boilerplate

Description

This repository serves as a robust starting point for building secure and scalable applications using the NestJS framework. It is designed with modern development practices and features a suite of tools and patterns to enhance productivity, security, and maintainability.

Features

Getting Started

Follow the steps below to set up and run the codebase on your local machine.

Prerequisites

  • Node.js (v16.x or later)
  • npm or yarn for dependency management
  • Docker (optional, for running the application in a containerized environment)

Installation

  1. Clone the repository:
git clone https://github.com/wildandhya/nestjs-boilerplate.git
cd nestjs-boilerplate
  1. Install dependencies:
npm install
  1. Set up the environment variables by creating a .env file:
cp .env.example .env

Running the Application

  1. Start the application in development mode:
npm run start:dev
  1. Access the API documentation at http://localhost:3000/docs

  2. To build for production:

npm run build
npm run start:prod

License

MIT