Skip to content

rizkyhaksono/nestjs-inventory

Repository files navigation

Nest Logo

A progressive Node.js framework for building efficient and scalable server-side applications.

NPM Version Package License NPM Downloads CircleCI Coverage Discord Backers on Open Collective Sponsors on Open Collective Support us

Description

Nest framework TypeScript starter repository.

Installation and Configuration

Manual Installation

$ npm install
$ yarn install

Dockerfile Installation

$ docker buildx build . -t your_image_name
$ docker run -it -p 3010:3000 --name your_container_name your_image_name

Docker-compose Installation

$ docker-compose up -d

Running the app

# development
$ yarn start

# watch mode
$ yarn start:dev

# production mode
$ yarn start:prod

Test

# unit tests
$ yarn test

# e2e tests
$ yarn test:e2e

# test coverage
$ yarn test:cov

Jenkinsfile

First, you need to install the NodeJS plugin in Jenkins. Then, you can create a new pipeline job and use this following Jenkinsfile.

pipeline {
    agent any
    environment {
        NODE_VERSION = '20.11.1'
        NPM_VERSION = '10.5.0'
    }
    stages {
        stage('Checkout') {
            steps {
                checkout scm
            }
        }
        stage('Install') {
            steps {
                sh 'npm install'
            }
        }
        stage('Test') {
            steps {
                sh 'npm run test'
            }
        }
        stage('Build') {
            steps {
                sh 'npm run build'
            }
        }
        stage('Deploy') {
            steps {
                sh 'npm run start:prod'
            }
        }
    }
}

Support

Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.

Stay in touch

License

Nest is MIT licensed.

About

NestJS Inventory that support Auth, Module, and FileInterceptor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published