NodeJS application that displays client's public IP address.
Detailed writeup is posted on my blog here
NodeJS + NPM
Docker
npm install
npm run dev
docker load -i what-is-my-ip_docker.tar
docker run -d -e NODE_ENV='production' -p 9002:9002 -v <LOCAL LOG LOCATION>:/usr/src/app/logs --name what-is-my-ip what-is-my-ip:latest
Script | Description |
---|---|
dev | Runs application in nodemon |
build | Creates docker image |
docker-start | Build docker image and start container locally |
dist | Create distribution docker tar file |
cleanup | Remove development files |