This repository contains small shell scripts to quickly scaffold starter projects for common stacks.
Prerequisites
- Bash (Unix-like environment)
git(recommended)- For Go scaffolding:
go(>=1.20) - For Hono/Next scaffolding:
nodeorbun(the scripts preferpnpmwhen using Node orbunxwhen using Bun)
Make scripts executable (once):
chmod +x scaffold-go.sh scaffold-honjs.sh scaffold-nextjs.shUsage
- Scaffold a Go/Gin app:
./scaffold-go.sh my-go-app- Scaffold a Hono app (uses
pnpmorbunxdepending on environment):
./scaffold-honjs.sh my-hono-app- Scaffold a Next.js app (uses
pnpmorbunxdepending on environment):
./scaffold-nextjs.sh my-next-appWhat each script does
scaffold-go.sh: initializes a Go module, createscmd,internal, andpkglayouts, creates.env/.env.example/.gitignoreand adocker-compose.yml, and installs common packages (Gin, jwt, pgx, godotenv).scaffold-honjs.sh: bootstraps a Hono project viapnpm/bunx, installszod,drizzle-orm, sets upbiomeand testing folders, and creates a recommendedsrclayout plus DB files.scaffold-nextjs.sh: creates a Next.js app viapnpm/bunx, addsdb,validators, andtestfolders, scaffolds exampledrizzleDB files and adocker-compose.yml, and installs DB/test tooling.
Notes & tips
- The scripts check for required CLI tools and will print install hints if missing.
- Provide a project name as the first argument; otherwise
.(current directory) is used. - Inspect each script before running if you need to customize dependencies or directories.
License See the LICENSE file in the repository.
Issues or contributions
- Open an issue or submit a PR with improvements or fixes to the scripts.