Skip to content

Commit 5159c72

Browse files
Initial commit
0 parents  commit 5159c72

72 files changed

Lines changed: 17104 additions & 0 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.env.example

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# GitHub App Configuration
2+
GITHUB_APP_ID=your_github_app_id
3+
GITHUB_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\nYour private key here\n-----END RSA PRIVATE KEY-----"
4+
GITHUB_WEBHOOK_SECRET=your_webhook_secret
5+
GITHUB_CLIENT_ID=your_github_client_id
6+
GITHUB_CLIENT_SECRET=your_github_client_secret
7+
8+
# Database Configuration
9+
DATABASE_URL=postgresql://user:password@localhost:5432/codxcd
10+
11+
# JWT Secret for authentication
12+
JWT_SECRET=your-super-secret-jwt-key
13+
14+
# Server Configuration
15+
PORT=3001
16+
NODE_ENV=development
17+
FRONTEND_URL=http://localhost:5173
18+
LOG_LEVEL=info
19+
20+
# Optional: External Service APIs
21+
OPENAI_API_KEY=your_openai_api_key_for_enhanced_ai_features
22+
SLACK_WEBHOOK_URL=your_slack_webhook_for_notifications

.github/marketplace-listing.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: CodXCD DevOps Copilot
2+
tagline: AI-powered DevOps automation with GitHub Copilot integration
3+
description: |
4+
CodXCD is a powerful DevOps automation platform that integrates with GitHub Copilot to provide intelligent code analysis, automated fixes, and comprehensive DevOps tooling through natural language interactions.
5+
6+
categories:
7+
- devops
8+
- continuous-integration
9+
- code-quality
10+
- project-management
11+
- security
12+
13+
plans:
14+
- name: Free
15+
description: Basic DevOps automation for individuals
16+
monthly:
17+
price: 0
18+
unit: user
19+
features:
20+
- 3 repositories
21+
- Basic code analysis
22+
- 10 AI credits per month
23+
- Basic security scanning
24+
- Community support
25+
26+
- name: Pro
27+
description: Advanced features for professional developers
28+
monthly:
29+
price: 9.99
30+
unit: user
31+
features:
32+
- 10 repositories
33+
- Advanced code analysis
34+
- 100 AI credits per month
35+
- Priority support
36+
- Advanced security features
37+
- CI/CD automation
38+
- Time tracking
39+
- Feature trials
40+
41+
- name: Enterprise
42+
description: Complete solution for teams and organizations
43+
monthly:
44+
price: 49.99
45+
unit: user
46+
features:
47+
- Unlimited repositories
48+
- Unlimited AI credits
49+
- Custom integrations
50+
- Team management
51+
- Advanced analytics
52+
- Priority support
53+
- All Pro features
54+
- Custom deployment options
55+
56+
installation_notes: |
57+
## Quick Start
58+
1. Install CodXCD from GitHub Marketplace
59+
2. Authorize the app for your repositories
60+
3. Access your dashboard at https://codxcd.com
61+
62+
## Support
63+
- Documentation: https://docs.codxcd.com
64+
- Email: support@codxcd.com
65+
- Discord: https://discord.gg/codxcd
66+
67+
terms_of_service_url: https://codxcd.com/terms
68+
privacy_policy_url: https://codxcd.com/privacy
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<div class="w-[660px] h-[220px] bg-gradient-to-br from-blue-700 via-indigo-700 to-green-600 flex items-center justify-center p-4 rounded-xl overflow-hidden font-inter">
2+
<script src="https://cdn.tailwindcss.com"></script>
3+
<style>
4+
/* Custom font import */
5+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');
6+
.font-inter {
7+
font-family: 'Inter', sans-serif;
8+
}
9+
</style>
10+
11+
<!-- Banner Content Container -->
12+
<div class="text-center text-white p-4">
13+
<!-- Headline -->
14+
<h1 class="text-4xl font-extrabold mb-2 tracking-tight drop-shadow-lg">
15+
Cod<span class="text-emerald-300">X</span>CD: Your <span class="text-indigo-300">AI</span> DevOps Copilot
16+
</h1>
17+
18+
<!-- Tagline -->
19+
<p class="text-xl font-medium drop-shadow">
20+
Automate Workflows, Enhance Security, Ship Faster.
21+
</p>
22+
</div>
23+
</div>

.github/marketplace/banner/banner.png

Loading

.github/marketplace/logos/logo.png

Loading

.github/marketplace/logos/logo.svg

Lines changed: 112 additions & 0 deletions
Loading

.github/workflows/deploy.yml

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
name: Deploy CodXCD
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Setup Node.js
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '18'
19+
cache: 'npm'
20+
21+
- name: Install dependencies
22+
run: npm ci
23+
24+
- name: Run linter
25+
run: npm run lint
26+
27+
- name: Build application
28+
run: npm run build
29+
30+
- name: Run tests
31+
run: npm test
32+
env:
33+
NODE_ENV: test
34+
35+
deploy:
36+
needs: test
37+
runs-on: ubuntu-latest
38+
if: github.ref == 'refs/heads/main'
39+
40+
steps:
41+
- uses: actions/checkout@v4
42+
43+
- name: Setup Node.js
44+
uses: actions/setup-node@v4
45+
with:
46+
node-version: '18'
47+
cache: 'npm'
48+
49+
- name: Install dependencies
50+
run: npm ci
51+
52+
- name: Build application
53+
run: npm run build
54+
55+
- name: Deploy to Vercel
56+
uses: amondnet/vercel-action@v25
57+
with:
58+
vercel-token: ${{ secrets.VERCEL_TOKEN }}
59+
vercel-org-id: ${{ secrets.ORG_ID }}
60+
vercel-project-id: ${{ secrets.PROJECT_ID }}
61+
vercel-args: '--prod'
62+
63+
docker:
64+
needs: test
65+
runs-on: ubuntu-latest
66+
if: github.ref == 'refs/heads/main'
67+
68+
steps:
69+
- uses: actions/checkout@v4
70+
71+
- name: Set up Docker Buildx
72+
uses: docker/setup-buildx-action@v3
73+
74+
- name: Login to Docker Hub
75+
uses: docker/login-action@v3
76+
with:
77+
username: ${{ secrets.DOCKER_USERNAME }}
78+
password: ${{ secrets.DOCKER_PASSWORD }}
79+
80+
- name: Build and push
81+
uses: docker/build-push-action@v5
82+
with:
83+
context: .
84+
push: true
85+
tags: |
86+
codxcd/codxcd:latest
87+
codxcd/codxcd:${{ github.sha }}
88+
cache-from: type=gha
89+
cache-to: type=gha,mode=max

.gitignore

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
19+
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
25+
.env

0 commit comments

Comments
 (0)