Christopher M. Hobbs 66849804f0
Update shard.yml to remove ameba version requirement
Also bump listed version from tested version.
2025-07-13 01:50:59 -05:00
2025-07-13 01:33:19 -05:00
2025-07-13 01:37:16 -05:00

crystal-devcontainer-template

This is a template repo for creating a new Crystal project with DevPod using devcontainers.

Usage

Create New Project from Template

  1. On GitHub: Click "Use this template" → "Create a new repository"
  2. Name your new repo and clone it locally:
git clone https://github.com/yourusername/your-new-project.git
cd your-new-project

Update Project Files

  1. Replace placeholder strings in these files:

    • .devcontainer/devcontainer.json: PROJECT_NAMEyour-new-project
    • shard.yml: PROJECT_NAME, YOUR_NAME, YOUR_EMAIL
    • src/main.cr: PROJECT_NAMEyour-new-project
  2. 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'

Start DevPod

  1. Open with DevPod:
devpod up . --provider docker

Initialize Crystal Project

  1. Inside the devcontainer:
shards install
crystal build src/main.cr
./main
Description
A Crystal devcontainer template repo for DevPod
Readme 33 KiB
Languages
Dockerfile 72.4%
Makefile 19.3%
Crystal 8.3%