此仓库是 https://GitLab.com/jarv/cmdchallenge 的镜像
此仓库包含站点 cmdchallenge.com 的代码
docker-compose build
# For ARM (M1 mac for example) run
# BUILD_ARCH=arm64 docker-compose build
docker-compose up runcmd --remove-orphans
# For ARM (M1 mac for example) run
# BUILD_ARCH=arm64 docker-compose up runcmd caddy -V --remove-orphans
# Connect your browser to http://localhost:8181/cd cmdchallenge && go test ./...cd site
npm install
npx vite buildcd cmdchallenge
# Start the backend the `-dev` option uses an in-memory db.
go run cmd/runcmd/runcmd.go -dev -staticDistDir=../site/dist测试单个命令:
curl http://localhost:8181/c/r -X POST -F slug=hello_world -F cmd="echo hello world"获取解决方案:
curl http://localhost:8181/c/s?slug=hello_world暂无开放 Issues,或尚未同步最近议题。