mirror of
https://github.com/wahyd4/passkey-auth.git
synced 2026-08-09 04:15:55 +10:00
- Add automated GitHub setup script for easy repository creation - Include comprehensive setup guide with step-by-step instructions - Cover repository configuration, branch protection, and CI/CD setup - Provide guidance for open source project promotion and community engagement
4.5 KiB
4.5 KiB
GitHub Repository Setup Guide
This guide will help you create a GitHub repository and push your Passkey Auth project to GitHub.
Prerequisites
- Git installed and configured
- GitHub account
- SSH keys set up with GitHub (recommended) or HTTPS access
Step-by-Step Instructions
1. Create GitHub Repository
- Go to GitHub and sign in
- Click the "+" icon in the top right corner
- Select "New repository"
- Fill in the repository details:
- Repository name:
passkey-auth(or your preferred name) - Description: "WebAuthn (FIDO2) passkey authentication service for Kubernetes nginx ingress"
- Visibility: Public (for open source) or Private
- DO NOT initialize with README, .gitignore, or license (we already have these)
- Repository name:
- Click "Create repository"
2. Push Your Code
Option A: Use the Setup Script (Recommended)
# Run the automated setup script
./scripts/github-setup.sh
Option B: Manual Setup
# Set your GitHub username and repository name
GITHUB_USERNAME="your-username"
REPO_NAME="passkey-auth"
# Add remote origin
git remote add origin https://github.com/${GITHUB_USERNAME}/${REPO_NAME}.git
# Push to GitHub
git branch -M main
git push -u origin main
3. Configure Repository Settings
After pushing, configure your repository:
Basic Settings
- Go to your repository on GitHub
- Click "Settings" tab
- Add a description: "WebAuthn (FIDO2) passkey authentication service for Kubernetes nginx ingress"
- Add topics:
webauthn,fido2,passkey,kubernetes,authentication,golang,nginx,ingress - Add website URL if you have a demo
Branch Protection (Recommended)
- Go to Settings → Branches
- Click "Add rule"
- Branch name pattern:
main - Enable:
- ✅ Require a pull request before merging
- ✅ Require status checks to pass before merging
- ✅ Require branches to be up to date before merging
- ✅ Include administrators
GitHub Actions Secrets (For CI/CD)
If you want to publish Docker images:
- Go to Settings → Secrets and variables → Actions
- Add repository secrets:
DOCKER_USERNAME: Your Docker Hub usernameDOCKER_PASSWORD: Your Docker Hub password or access token
4. Optional Enhancements
GitHub Pages (Documentation)
- Go to Settings → Pages
- Source: Deploy from a branch
- Branch:
main - Folder:
/docs(create docs folder if needed)
Issue Templates
The repository already includes:
- Bug report template
- Feature request template
- Pull request template
Discussions
- Go to Settings → General
- Scroll to "Features"
- Enable "Discussions" for community Q&A
Security
- Go to Settings → Security
- Enable "Dependency graph"
- Enable "Dependabot alerts"
- Enable "Dependabot security updates"
Repository Structure
Your repository now includes:
passkey-auth/
├── .github/ # GitHub templates and workflows
│ ├── ISSUE_TEMPLATE/ # Bug and feature request templates
│ ├── workflows/ # GitHub Actions CI/CD
│ └── pull_request_template.md
├── internal/ # Go application code
├── k8s/ # Kubernetes manifests
├── scripts/ # Build and deployment scripts
├── web/ # Web interface
├── CHANGELOG.md # Version history
├── CONTRIBUTING.md # Contribution guidelines
├── LICENSE # MIT License
├── README.md # Main documentation
├── Dockerfile # Docker build configuration
└── Makefile # Development commands
Next Steps
- Star your repository to bookmark it
- Watch releases to get notified of updates
- Create your first release when ready
- Share with the community on relevant platforms
- Write blog posts about your project
- Submit to awesome lists related to authentication or Kubernetes
Promoting Your Open Source Project
- Reddit: Post in r/golang, r/kubernetes, r/selfhosted
- Hacker News: Share when you have significant updates
- Dev.to: Write technical blog posts
- Twitter/X: Share updates and engage with the community
- Kubernetes Slack: Share in relevant channels
- Awesome Lists: Submit to awesome-go, awesome-kubernetes, etc.
Support
If you need help with GitHub setup:
Happy coding! 🚀