Skip to content

gjtiquia/cURLy

Repository files navigation

cURLy

snake game with cURL

# for Linux/Mac
curl -fsSL cURLy.gjt.io/install.sh | bash

# for Windows 
powershell -c "irm curly.gjt.io/install.ps1 | iex"

pre-requisites

tasks

# run cURLy tui
go run ./cmd/tui

# build cURLy tui executables
go run ./cmd/build
# install dependencies
bun install

# run web server on port 3000 with live reload
# also generates tailwind classes, bundles typescript, builds wasm
air

# build tailwind classes
bunx @tailwindcss/cli -i ./web/input.css -o ./public/styles.css

# bundle TypeScript scripts
bun build ./web/src/index.ts --outdir=./public

# build wasm
GOOS=js GOARCH=wasm tinygo build -o ./public/main.wasm ./web/wasm

# build web server
go build -o ./bin/server ./cmd/server

# run web server on specific port
PORT=4321 ./bin/server

todos

  • Makefile with build command, including TypeScript typecheck, and minified outputs