Skip to content

This repository demonstrates how to dockerize and deploy a Node.js application to Back4app Containers.

Notifications You must be signed in to change notification settings

duplxey/back4app-containers-nodejs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

back4app-containers-nodejs

This repository demonstrates how to dockerize and deploy a Node.js application to Back4app Containers.

To learn more check out the article.

Development

  1. Fork/Clone

  2. Install the dependencies:

    $ npm install
  3. Run the server:

    $ node index.js
  4. Navigate to http://localhost:3000/ in your favorite web browser.

Deploy (Docker)

  1. Install Docker (if you don't have it yet).

  2. Build and tag the image:

    $ docker build -t express-github-stats:1.0 .
  3. Start a new container:

     $ docker run -it -p 3000:3000 -d express-github-stats:1.0
  4. Navigate to http://localhost:3000/ in your favorite web browser.

About

This repository demonstrates how to dockerize and deploy a Node.js application to Back4app Containers.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published