This project contains a minimal starter for Node.js project with Typescript, ESLint and Prettier already configured
- Node.js 16+
- Yarn or NPM
- Install dependencies
yarn install
- Start Application
yarn start
The application will be launched by Nodemon so it's will restart automatically on file change
Run the command below to build the Docker image
docker build -t nodelb-app:latest .
Start a container from the Docker image built
docker run --rm -d -p 4501:4500 --env MAX_NUMBER=10 --name nodelbapp-1 nodelb-app:latest
Tag the Docker image
docker tag nodelb-app:latest tericcabrel/nodelb-app:latest
Push the image in the docker Hub
docker push tericcabrel/nodelb-app:latest