Template project to develop with NodeJs + Express + EJS(Template Engine)
in both cases fist run npm install
npm start
Build you image
docker build -t <you-user-name>/node-web-app .
than run exposing port 80 to internet
docker run -p 80:3000 <you-user-name>/node-web-app
optionally you can change internal container port with the environment variable PORT
docker run -p 80:12345 -e "PORT=12345" <you-user-name>/node-web-app
Tutorials
-
https://imasters.com.br/front-end/criando-uma-api-node-em-10-passos-com-express-js
-
https://www.codementor.io/@nulldreams/utilizando-a-engine-ejs-para-aplicacoes-em-nodejs-dok81l3si
// Gitignore