Develop a single Dockerfile.dev that supports both Django backend and Node.js frontend.
Include Python dependencies (requirements.txt) for Django.
Include Node.js dependencies (package.json) for frontend (e.g., Three.js, Bootstrap).
Create VS Code Dev Container Configuration:
Set up a .devcontainer directory in the project root.
Add devcontainer.json configuration file.
Include the Dockerfile.dev inside the .devcontainer directory.
Configure Docker Compose (Optional but Recommended):
Optionally, create a docker-compose.yml file to manage services within the container.
Define services for backend and frontend within the same Docker Compose file.
Integration and Testing (Optional but Recommended):
Integrate testing frameworks (e.g., Pytest for Django, Jest for frontend) within the Docker container.
Ensure both backend and frontend functionalities are validated within the unified environment.
Documentation and Setup Instructions:
Update README.md with detailed setup instructions for developers.
Include steps to build, run, and manage the unified Docker container using VS Code.
Provide guidelines for developers to interact with backend and frontend components.
Definition of Done:
VS Code Dev Container Created:
.devcontainer directory with devcontainer.json and Dockerfile configured to support both Django backend and Node.js frontend with their respective dependencies.
(Optional) Docker Compose Configured:
docker-compose.yml effectively manages backend and frontend services within the unified container.
(Optional) Testing Integrated:
Automated testing frameworks integrated within the Docker container to validate backend and frontend functionalities.
Documentation Updated:
README.md includes comprehensive setup instructions and best practices for developers using the unified development environment with VS Code.
Branch Name:
chore/003-setup-vscode-dev-container
Steps:
Create Dockerfile:
Dockerfile.dev
that supports both Django backend and Node.js frontend.requirements.txt
) for Django.package.json
) for frontend (e.g., Three.js, Bootstrap).Create VS Code Dev Container Configuration:
.devcontainer
directory in the project root.devcontainer.json
configuration file.Dockerfile.dev
inside the.devcontainer
directory.Configure Docker Compose (Optional but Recommended):
docker-compose.yml
file to manage services within the container.Integration and Testing (Optional but Recommended):
Documentation and Setup Instructions:
README.md
with detailed setup instructions for developers.Definition of Done:
.devcontainer
directory withdevcontainer.json
andDockerfile
configured to support both Django backend and Node.js frontend with their respective dependencies.docker-compose.yml
effectively manages backend and frontend services within the unified container.README.md
includes comprehensive setup instructions and best practices for developers using the unified development environment with VS Code.