Add Dockerfile and docker-compose configuration
Description
Add Docker support to containerize the application and simplify local development and deployment.
The goal is to make the backend portable and runnable in isolated environments without requiring manual dependency setup.
What Needs to Be Done
Create a Dockerfile for the Node.js application.
Create a docker-compose.yml file to run:
Node.js API
MongoDB service
Configure environment variable support.
Ensure the application runs successfully using:
docker-compose up --build
Update README with Docker setup instructions.
Acceptance Criteria
Application builds successfully in Docker.
API connects properly to MongoDB container.
No hardcoded environment variables.
Documentation updated.
Add Dockerfile and docker-compose configuration
Description
Add Docker support to containerize the application and simplify local development and deployment.
The goal is to make the backend portable and runnable in isolated environments without requiring manual dependency setup.
What Needs to Be Done
Create a Dockerfile for the Node.js application.
Create a docker-compose.yml file to run:
Node.js API
MongoDB service
Configure environment variable support.
Ensure the application runs successfully using:
docker-compose up --build
Update README with Docker setup instructions.
Acceptance Criteria
Application builds successfully in Docker.
API connects properly to MongoDB container.
No hardcoded environment variables.
Documentation updated.