This is a nodejs application packaged using docker to pass devcode coding challenge automation testing
Built with :
- Node v18 (Express js)
- MySql RDBMS
- Docker
npm install
npm start
Here are the general steps:
-
Open Docker hub
-
search the docker image "aliasjupleks / devcode-todolist-main-app"
-
Pull the Image :
docker pull <image_name>
Replace
<image_name>
with the actual name of the image you want to pull. -
Run the Container :
docker run <options> <image_name>
Replace
<options>
with any additional options you want to pass (e.g., ports, volumes), and<image_name>
with the name of the image.Here's a simple example:
docker run -d -p 3030:3030 --name my_container <image_name>
-d
: Run the container in the background (detached mode).-p 3030:3030
: Map port 3030 on the host to port 3030 on the container.--name my_container
: Assign a name to the container.
-
Verify the Container is Running : You can check the running containers using:
docker ps
This command will show you a list of running containers along with their details.
-
Detailed documentation about how to containerize a nodejs app : https://docs.docker.com/language/nodejs/