This is a template repo for creating a new Crystal project with DevPod using devcontainers.
- On GitHub: Click "Use this template" → "Create a new repository"
- Name your new repo and clone it locally:
git clone https://github.com/yourusername/your-new-project.git
cd your-new-project-
Replace placeholder strings in these files:
.devcontainer/devcontainer.json:PROJECT_NAME→your-new-projectshard.yml:PROJECT_NAME,YOUR_NAME,YOUR_EMAILsrc/main.cr:PROJECT_NAME→your-new-project
-
Quick find/replace (Linux/Mac):
find . -type f -name "*.json" -o -name "*.yml" -o -name "*.cr" | xargs sed -i 's/PROJECT_NAME/your-new-project/g'
find . -type f -name "*.yml" | xargs sed -i 's/YOUR_NAME/Your Name/g'
find . -type f -name "*.yml" | xargs sed -i 's/YOUR_EMAIL/your@email.com/g'- Open with DevPod:
devpod up . --provider docker- Inside the devcontainer:
shards install
crystal build src/main.cr
./main