Skip to content

Abyanzhafran/devcode-todolist-main

Repository files navigation

Devcode todolist

This is a nodejs application packaged using docker to pass devcode coding challenge automation testing

Prequisite

Built with :

  • Node v18 (Express js)
  • MySql RDBMS
  • Docker

Setup for local development

Install the Dependencies

npm install

Start the app in development mode

npm start

Run the application using docker image

Here are the general steps:

  1. Open Docker hub

  2. search the docker image "aliasjupleks / devcode-todolist-main-app"

  3. Pull the Image :

    docker pull <image_name>

    Replace <image_name> with the actual name of the image you want to pull.

  4. 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.
  5. 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.

  6. Detailed documentation about how to containerize a nodejs app : https://docs.docker.com/language/nodejs/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published