abbastoof / transcendence

2 stars 4 forks source link

Devops: Set Up VS Code Development Container for Backend and Frontend Developers #3

Closed trsctr closed 3 months ago

trsctr commented 4 months ago

Branch Name: chore/003-setup-vscode-dev-container

Steps:

  1. Create Dockerfile:

    • 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).
  2. 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.
  3. 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.
  4. 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.
  5. 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: