Skip to content

Latest commit

 

History

History
56 lines (35 loc) · 1.25 KB

File metadata and controls

56 lines (35 loc) · 1.25 KB

Node.js Development Environment

A Node.js development environment using Docker Compose.

Getting Started

Download and install Docker for Mac or Windows.

Clone this repository:

git clone https://github.com/jasonjlock/node-env.git

Change directories to the new repository:

cd node-env

How To Use

Start the Docker containers:

Running this step for the first time builds the container images. This process can take a while.

docker-compose up

this starts Nginx and Node.js containers. Nginx is a reverse proxy passing requests to the Node.js server.

What Next

While the containers are running, visit http://localhost in your browser.

Add dependencies, write some code, and run it:

docker exec -it nodeenv_app_1 node your_code.js

Stop the running containers:

docker-compose down

Helpful Resources