microURLs Backend , NodeJS and MongoDB
-
Install Docker: Make sure you have Docker installed on your machine. You can download it from Docker's official website.
-
Build the Docker Image:
docker build -t microurls-backend . -
Run the Docker Container:
docker run -d -p 8080:8080 --name microurls-backend-container microurls-backend
-
Verify the Container is Running:
docker ps
-
Access the Application: Open your browser and go to
http://localhost:8080. -
Stopping the Container:
docker stop microurls-backend-container
-
Removing the Container:
docker rm microurls-backend-container
-
Removing the Docker Image:
docker rmi microurls-backend