Skip to content

franklang/node-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

From the root of the node-docker directory, build container:

docker build -t node-docker .

From the root of the node-docker directory, run the service:

docker-compose run --rm --service-ports nod_dev_env

In the container shell, execute the following command to run the Node server (if you prefer, use npm):

yarn start

To test the server, visit http://localhost:8080/ in your local browser.

Keep in mind this repo is for DEMO purpose only. It illustrates the tutorial available from the bottom links of this readme.md. This DEMO already provides a package.json file that was generated in a way described here.

Whenever you want to use this container for personal purpose, you'd better read the tutorial before cloning this repo to a new directory labelled after your project's name and start editing Docker files regarding your needs, build a fresh container.

Reference links for better explaination and further information:

About

Use Docker to Create a Front-End Node JS Development Environment

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors