Contributing
How to set up your environment and contribute changes
Important
Before starting work on any new features or major changes, please open an issue first to discuss your proposal and get approval. We don't want you to waste time on work that might not align with the project's direction or get merged.
This project is a monorepo with two main apps:
apps/cliapps/webgit clone https://github.com/AmanVarshney01/create-better-t-stack.git
cd create-better-t-stack
bun installcd apps/cli
# optional global link for testing anywhere
bun link
# run in watch mode (runs tsdown build in watch mode)
bun devNow go to anywhere else in your system (maybe like a test folder) and run:
create-better-t-stackThis will run the locally installed CLI.
# from repo root
bun install
cd packages/backend
bun dev:setup # you can choose local development too in promptsCopy the Convex URL from packages/backend/.env.local to apps/web/.env:
NEXT_PUBLIC_CONVEX_URL=http://127.0.0.1:3210/Now run bun dev in the root. It will complain about GitHub token, so run this in packages/backend:
npx convex env set GITHUB_ACCESS_TOKEN=xxxxx
npx convex env set GITHUB_WEBHOOK_SECRET=xxxxx# CLI
cd apps/cli && bun dev
cd apps/cli && bun run test
# Web
bun dev
# Lint + format checks
bun run checkgit add .
git commit -m "feat(web): ..." # or fix(cli): ...
git push origin <your-branch>Use conventional commit messages with the appropriate scope:
feat(cli): add new CLI featurefix(cli): fix CLI bugfeat(web): add new web featurefix(web): fix web bugchore(web): update dependenciesdocs: update documentationSee full contributor guide in the repository: .github/CONTRIBUTING.md.