This repository demonstrates how to dockerize and deploy a Node.js application to Back4app Containers.
To learn more check out the article.
-
Fork/Clone
-
Install the dependencies:
$ npm install
-
Run the server:
$ node index.js
-
Navigate to http://localhost:3000/ in your favorite web browser.
-
Install Docker (if you don't have it yet).
-
Build and tag the image:
$ docker build -t express-github-stats:1.0 .
-
Start a new container:
$ docker run -it -p 3000:3000 -d express-github-stats:1.0
-
Navigate to http://localhost:3000/ in your favorite web browser.