Skip to content

Commit dbcdf97

Browse files
Merge pull request #1 from coded-devs/feature/backend-setup
Feature/backend setup
2 parents fb2c4a7 + eb27a11 commit dbcdf97

71 files changed

Lines changed: 1270 additions & 317 deletions

Some content is hidden

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

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# CODEDDEVS TECHNOLOGY LTD — Code Owners
2+
# All PRs targeting main or dev require review from the repo owner before merging
3+
4+
* @onerandomdevv
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
---
2+
name: Bug report
3+
about: Something is broken
4+
labels: bug
5+
---
6+
7+
## What is broken?
8+
9+
## Steps to reproduce
10+
1.
11+
2.
12+
3.
13+
14+
## Expected behaviour
15+
16+
## Actual behaviour
17+
18+
## Environment
19+
- Branch:
20+
- Node version:
21+
- Browser (if UI):
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
name: Feature request
3+
about: Suggest something new
4+
labels: enhancement
5+
---
6+
7+
## What do you want to build?
8+
9+
## Why is it needed?
10+
11+
## Acceptance criteria
12+
- [ ]
13+
- [ ]
14+
- [ ]
15+
16+
## Notes

.github/pull_request_template.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
## What does this PR do?
2+
<!-- Brief description of the changes -->
3+
4+
## Type of change
5+
- [ ] Feature
6+
- [ ] Bug fix
7+
- [ ] Config / setup
8+
- [ ] Refactor
9+
- [ ] Docs
10+
11+
## Checklist
12+
- [ ] I have read CLAUDE.md
13+
- [ ] pnpm build passes locally with no errors
14+
- [ ] No TypeScript errors (pnpm tsc --noEmit)
15+
- [ ] No hardcoded secrets or API keys
16+
- [ ] All new API routes check for admin session before executing
17+
- [ ] No UI libraries were installed
18+
- [ ] Fonts are loaded via next/font/google only
19+
- [ ] pnpm was used (not npm or yarn)
20+
21+
## Screenshots (if UI changes)
22+
<!-- Add screenshots here if this PR touches any frontend pages -->
23+
24+
## Notes for reviewer
25+
<!-- Anything the reviewer should know -->

.github/workflows/ci.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- dev
8+
pull_request:
9+
branches:
10+
- main
11+
- dev
12+
13+
jobs:
14+
ci:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Setup pnpm
22+
uses: pnpm/action-setup@v3
23+
with:
24+
version: 10
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: 20
30+
cache: pnpm
31+
32+
- name: Install dependencies
33+
run: pnpm install --frozen-lockfile
34+
35+
- name: TypeScript check
36+
run: pnpm tsc --noEmit
37+
38+
- name: ESLint
39+
run: pnpm eslint src/ --ext .ts,.tsx --max-warnings 0
40+
41+
- name: Build check
42+
run: pnpm build
43+
env:
44+
DATABASE_URL: postgresql://dummy:dummy@dummy/dummy
45+
DATABASE_URL_UNPOOLED: postgresql://dummy:dummy@dummy/dummy
46+
NEXTAUTH_SECRET: dummy-secret-for-ci-only-not-real
47+
NEXTAUTH_URL: http://localhost:3000
48+
NEXT_PUBLIC_CLOUDINARY_CLOUD_NAME: dummy
49+
NEXT_PUBLIC_CLOUDINARY_UPLOAD_PRESET: dummy
50+
CLOUDINARY_API_KEY: dummy
51+
CLOUDINARY_API_SECRET: dummy
52+
RESEND_API_KEY: dummy
53+
CONTACT_NOTIFICATION_EMAIL: ci@dummy.com

.github/workflows/preview.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Preview
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
preview:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Comment preview status
14+
uses: actions/github-script@v7
15+
with:
16+
script: |
17+
await github.rest.issues.createComment({
18+
owner: context.repo.owner,
19+
repo: context.repo.repo,
20+
issue_number: context.issue.number,
21+
body: "✅ CI passed. Vercel preview deployment will be available shortly.",
22+
});

0 commit comments

Comments
 (0)