A progressive Node.js framework for building efficient and scalable server-side applications.
Nest framework TypeScript starter repository.
$ npm install
$ yarn install
$ docker buildx build . -t your_image_name
$ docker run -it -p 3010:3000 --name your_container_name your_image_name
$ docker-compose up -d
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
# unit tests
$ yarn test
# e2e tests
$ yarn test:e2e
# test coverage
$ yarn test:cov
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'
}
}
}
}
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.
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
Nest is MIT licensed.