Something went wrong. Try again.
Swap DIDs with people you meet
Something went wrong. Try again.
connections.directory CONTRIBUTING.md
2.1 kB · 83 lines
Markdown
at main
Contributing to Connections Directory #
Git Workflow #
We use a simple branch-based workflow:
Main Branch #
main- Production branch, deployed to connections.directory- All code in
mainshould be tested and working - Direct commits to
mainonly for hotfixes
Development Workflow #
-
Create a feature branch from main:
git checkout main git pull origin main git checkout -b feature/your-feature-name -
Make your changes and commit regularly:
git add . git commit -m "feat: description of your change" -
Push your branch:
git push origin feature/your-feature-name -
Merge to main when ready:
git checkout main git merge feature/your-feature-name git push origin main -
Deploy to production:
npm run build npx wrangler pages deploy dist --project-name=connections-directory
Commit Message Convention #
Use conventional commits:
feat:- New featurefix:- Bug fixdocs:- Documentation changesstyle:- Code style changes (formatting, etc)refactor:- Code refactoringtest:- Adding or updating testschore:- Maintenance tasks
Branch Naming #
feature/- New features (e.g.,feature/qr-scanner)fix/- Bug fixes (e.g.,fix/camera-permissions)refactor/- Code refactoring (e.g.,refactor/storage-layer)docs/- Documentation (e.g.,docs/setup-guide)
Testing Before Merge #
Before merging to main:
- Test locally with
npm run dev - Build successfully with
npm run build - Test the built version with
npm run preview - Ensure OAuth flow works
- Test QR scanning and generation
- Verify connections are saved and displayed
Deployment #
Deployments happen on merge to main:
- Merge your feature branch to main
- Run
npm run build - Deploy with
npx wrangler pages deploy dist --project-name=connections-directory - Test at https://connections.directory
Auto-Deploy (Future) #
We'll set up Cloudflare Pages to auto-deploy from the main branch in the Cloudflare dashboard.