/First-dockerised-node-app

This is my first dockerised node app

Primary LanguageJavaScript

First dockerised node app

Used

Knowledge and exprience

To make this app run on localhost 3000 , I dont needed to install npm modules i was able to make this server up without installing npm packages , quite amazed by it , Now i need to learn more about this container system

Run Locally

Clone the project

https://github.com/safil-badarudeen/First-dockerised-node-app.git

Go to the project directory

  cd First-dockerised-node-app

make sure you have installed docker and started in your system

To create a image for container to be lauch

  docker build .

run a container

  docker run -p 3000:3000 <image id>

at this point the terminal will get stuck

it means server is up even without npm packages.. hoooray

you can click + button above terminal and open new terminal

To know which containers are running

  docker ps

select and copy container name

To stop container

  docker stop <container name>