Run the below command to install the dependencies.
npm install
Run the below command to serve the application.
npm start
You can run this nodejs application insider a docker.
Please run the below command for creating docker image from the root folder
docker build . -t vijayapal/nodejs-web-app-learning
Running your image with -d runs the container in detached mode, leaving the container running in the background. The -p flag redirects a public port to a private port inside the container.
docker run -p 49160:8080 -d vijayapal/nodejs-web-app-learning
Test the application by using the url http://localhost:49160