OurTechCommunity / catchup

The OTC CatchUp web app and workflows.
https://catchup.ourtech.community
MIT License
15 stars 9 forks source link

Add a `devcontainer.json` for all Dependency Needs. #184

Open Welding-Torch opened 11 months ago

Welding-Torch commented 11 months ago

Issue Description

I propose adding a devcontainer.json file to the Our Tech Community repository. This file will enable developers to set up a consistent development environment quickly using GitHub Codespaces or other similar services.

Why is this needed?

A devcontainer.json file:

Proposed Changes

Additional Information


🤍 Thank you, OTC.

Welding-Torch commented 11 months ago

Code for devcontainer.json (Suggested Code)

Learn Development Containers: https://containers.dev/ Development Container For Ruby: https://github.com/devcontainers/images/tree/main/src/ruby

devcontainer.json

{
  "image": "mcr.microsoft.com/devcontainers/ruby",
  "features": {
    "ghcr.io/devcontainers/features/node:1": {}
  },
  "customizations": {
    "vscode": {
      "extensions": [
        "asciidoctor.asciidoctor-vscode",
        "mikestead.dotenv",
        "redhat.vscode-yaml",
        "streetsidesoftware.code-spell-checker"
      ]
    }
  },
  "postCreateCommand": "sh postCreateCommand.sh",
  "forwardPorts": [5000]
}

postCreateCommand.sh

gem install asciidoctor
cp sample.env .env
npm install
exit