Docker container express app, which can easily be deployed to anywhare.
Make sure you have Node JS.
git clone https://github.com/pritamkhose/Docker_Express.git
cd Docker_Express
npm install
npm start
npm install -g nodemon
nodemon
or
npm start-dev
Your app should now be running on localhost:3000.
mkdir Docker_Express
cd Docker_Express
npm install -g express-generator
express --view=pug Docker_Express
npm install --save-dev babel-cli babel-preset-env jest supertest superagent
npm install --save-dev chai chai-http mocha
Install dependencies : npm i jest-html-reporter --save-dev
and Read more here
it will create html report file at .\coverage\lcov-report\index.html
sudo apt install docker-compose
sudo docker-compose up --build -d // -d Run forever
sudo docker-compose up // run util CTRL+C exit
sudo docker-compose pause
sudo docker-compose unpause
sudo docker-compose stop
sudo docker-compose start
sudo docker-compose down
sudo docker-compose ps
sudo docker-compose logs
sudo docker build -t pritamkhose/docker_express .
sudo docker run -p 3000:3000 -d pritamkhose/docker_express
sudo docker logs f46251f91c95
sudo docker stop f46251f91c95
sudo docker start f46251f91c95
sudo docker --version
sudo docker info
sudo docker --help
sudo docker images
sudo docker images ps
sudo docker ps
sudo docker ps -a
sudo docker ps --all
sudo docker run busybox
sudo docker run -it busybox sh
sudo docker run busybox ping google.com
sudo docker exec -it busybox echo hi
sudo docker stop 9fa42f1891bd
sudo docker logs 9fa42f1891bd
sudo docker rmi Image 9fa42f1891bd
sudo docker rm a089ee2fc944
sudo docker system df
sudo docker system prune -a
sudo docker pull pritamkhose/docker-express:latest
Push Docker image to Docker hub
sudo docker push pritamkhose/docker-express
df -h