Professional cloud architecture and healthcare software consulting website with enterprise-grade CI/CD pipeline.
# Clone repository
git clone https://github.com/username/borderlessbits.com.git
cd borderlessbits.com
# Install dependencies
npm install
# Setup environment
cp .env.example .env.local
# Edit .env.local with your configuration
# Start development server
npm run dev
Open http://localhost:3000 to view the application.
# Start with Docker Compose
docker-compose up
# Production preview
docker-compose --profile production up
main โ Production deployments (https://borderlessbits.com)
develop โ Staging deployments (https://staging.borderlessbits.com)
feature/* โ Preview deployments (https://preview-pr-{number}.netlify.app)
hotfix/* โ Emergency production fixes
Development:
npm run dev # Start development server
npm run build # Production build
npm run start # Start production server
npm run preview # Preview production build locally
Quality & Testing:
npm run lint # Run ESLint
npm run lint:fix # Fix ESLint issues
npm run type-check # TypeScript validation
npm run format # Format code with Prettier
npm run format:check # Check formatting
npm run test # Run Jest tests
npm run test:coverage # Test coverage report
npm run validate-build # Full validation pipeline
Performance & Analysis:
npm run analyze # Bundle analysis
npm run lighthouse # Lighthouse audit
npm run lighthouse:ci # Lighthouse CI validation
Deployment:
./scripts/deploy.sh # Deploy to production
./scripts/deploy.sh -e staging # Deploy to staging
./scripts/deploy.sh -d # Dry run deployment
./scripts/rollback.sh # Emergency rollback
./scripts/rollback.sh -l # List available backups
โโโ .github/
โ โโโ workflows/ # GitHub Actions CI/CD
โ โ โโโ ci.yml # Continuous Integration
โ โ โโโ deploy-production.yml
โ โ โโโ deploy-staging.yml
โ โ โโโ preview-deploy.yml
โ โ โโโ security-scan.yml
โ โ โโโ monitoring.yml
โ โโโ ISSUE_TEMPLATE/ # Issue templates
โโโ docs/ # Documentation
โ โโโ CI-CD-PIPELINE.md
โ โโโ DEPLOYMENT-GUIDE.md
โ โโโ SECURITY.md
โ โโโ ARCHITECTURE.md
โโโ scripts/ # Deployment scripts
โ โโโ deploy.sh # Main deployment script
โ โโโ rollback.sh # Rollback script
โ โโโ setup-secrets.sh # GitHub secrets setup
โ โโโ monitoring/
โโโ src/ # Source code
โ โโโ app/ # Next.js app directory
โ โโโ components/ # React components
โ โโโ lib/ # Utilities and libraries
โ โโโ styles/ # Global styles
โ โโโ types/ # TypeScript definitions
โโโ src/ # Source code
โโโ content/ # Markdown content
โโโ public/ # Static assets
โโโ docker/ # Docker configurations
โโโ next.config.js # Next.js configuration
โโโ lighthouserc.json # Lighthouse CI configuration
โโโ package.json # Dependencies and scripts
Required for Production:
NEXT_PUBLIC_SITE_URL=https://borderlessbits.com
NEXT_PUBLIC_GA_MEASUREMENT_ID=G-XXXXXXXXXX
NEXT_PUBLIC_EMAILJS_SERVICE_ID=service_xxxxxxx
NEXT_PUBLIC_EMAILJS_TEMPLATE_ID=template_xxxxxxx
NEXT_PUBLIC_EMAILJS_PUBLIC_KEY=xxxxxxxxxx
Required for Deployment:
NETLIFY_AUTH_TOKEN=nfp_xxxxxxxxxx
NETLIFY_SITE_ID=xxxxxxxx-xxxx-xxxx-xxxx
GITHUB_TOKEN=ghp_xxxxxxxxxx
See .env.example for complete configuration options.
# Interactive setup
./scripts/setup-secrets.sh -t $GITHUB_TOKEN -r username/repository
# List current secrets
./scripts/setup-secrets.sh -t $GITHUB_TOKEN -r username/repository -l
Required GitHub Secrets:
GA_MEASUREMENT_ID
- Google Analytics tracking IDEMAILJS_SERVICE_ID
- EmailJS service configurationEMAILJS_TEMPLATE_ID
- Email template IDEMAILJS_PUBLIC_KEY
- EmailJS public keyNETLIFY_AUTH_TOKEN
- Netlify deployment tokenNETLIFY_SITE_ID
- Production site IDNETLIFY_STAGING_SITE_ID
- Staging site IDNETLIFY_PREVIEW_SITE_ID
- Preview deployments site IDmain
branchdevelop
branch# Deploy to all targets
./scripts/deploy.sh
# Deploy to specific environment
./scripts/deploy.sh -e staging -t netlify
# Force deployment (skip validations)
./scripts/deploy.sh -f
# Dry run (preview changes)
./scripts/deploy.sh -d
# Emergency rollback
./scripts/rollback.sh -y
# List available backups
./scripts/rollback.sh -l
# Rollback to specific version
./scripts/rollback.sh -b backup-20231201-143022
npm run test # Unit tests
npm run test:performance # Performance tests
npm run test:security # Security tests
git checkout -b feature/amazing-feature
npm run validate-build
git commit -m 'Add amazing feature'
git push origin feature/amazing-feature
This project is licensed under the MIT License - see the LICENSE file for details.
Built with โค๏ธ by Richard Mosley at BorderlessBits