Skip to content

Commit fead1ba

Browse files
committed
chore: oxfmt
1 parent 6d269e4 commit fead1ba

File tree

170 files changed

+5316
-4495
lines changed

Some content is hidden

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

170 files changed

+5316
-4495
lines changed

.github/workflows/checks.yml

Lines changed: 105 additions & 105 deletions
Original file line numberDiff line numberDiff line change
@@ -1,105 +1,105 @@
1-
name: CI
2-
3-
on:
4-
workflow_call:
5-
workflow_dispatch:
6-
pull_request:
7-
branches:
8-
- main
9-
- dev
10-
11-
jobs:
12-
lint:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- uses: actions/checkout@v4
16-
- name: Setup Node.js
17-
uses: actions/setup-node@v3
18-
with:
19-
node-version: 21
20-
- name: Install pnpm
21-
run: |
22-
corepack enable
23-
corepack prepare pnpm@latest --activate
24-
- name: Install dependencies
25-
run: pnpm install
26-
- name: Lint
27-
run: pnpm lint
28-
29-
typecheck:
30-
runs-on: ubuntu-latest
31-
32-
steps:
33-
- uses: actions/checkout@v4
34-
- name: Setup Node.js
35-
uses: actions/setup-node@v3
36-
with:
37-
node-version: 21
38-
- name: Install pnpm
39-
run: |
40-
corepack enable
41-
corepack prepare pnpm@latest --activate
42-
- name: Install dependencies
43-
run: pnpm install
44-
- name: Typecheck
45-
run: pnpm typecheck
46-
47-
test:
48-
runs-on: ubuntu-latest
49-
services:
50-
postgres:
51-
image: pgvector/pgvector:0.8.0-pg17
52-
ports:
53-
- 5432:5432
54-
env:
55-
POSTGRES_USER: root
56-
POSTGRES_PASSWORD: root
57-
POSTGRES_DB: app
58-
options: >-
59-
--health-cmd="pg_isready -U postgres"
60-
--health-interval=10s
61-
--health-timeout=5s
62-
--health-retries=5
63-
redis:
64-
image: redis:latest
65-
ports:
66-
- 6379:6379
67-
options: >-
68-
--health-cmd="redis-cli ping"
69-
--health-interval=10s
70-
--health-timeout=5s
71-
--health-retries=5
72-
steps:
73-
- uses: actions/checkout@v4
74-
- uses: pnpm/action-setup@v4
75-
with:
76-
run_install: false
77-
- name: Setup Node.JS
78-
uses: actions/setup-node@v3
79-
with:
80-
node-version: 20.14.0
81-
- name: Install dependencies
82-
run: pnpm install
83-
- name: Run tests
84-
run: pnpm run test
85-
86-
security:
87-
runs-on: ubuntu-latest
88-
if: github.event_name == 'pull_request'
89-
steps:
90-
- uses: actions/checkout@v4
91-
- name: Run Trivy vulnerability scanner
92-
uses: aquasecurity/trivy-action@master
93-
with:
94-
scan-type: 'fs'
95-
scan-ref: '.'
96-
format: 'sarif'
97-
output: 'trivy-results.sarif'
98-
continue-on-error: true
99-
100-
- name: Upload Trivy scan results
101-
uses: github/codeql-action/upload-sarif@v3
102-
if: always()
103-
with:
104-
sarif_file: 'trivy-results.sarif'
105-
continue-on-error: true
1+
name: CI
2+
3+
on:
4+
workflow_call:
5+
workflow_dispatch:
6+
pull_request:
7+
branches:
8+
- main
9+
- dev
10+
11+
jobs:
12+
lint:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: 21
20+
- name: Install pnpm
21+
run: |
22+
corepack enable
23+
corepack prepare pnpm@latest --activate
24+
- name: Install dependencies
25+
run: pnpm install
26+
- name: Lint
27+
run: pnpm lint
28+
29+
typecheck:
30+
runs-on: ubuntu-latest
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
- name: Setup Node.js
35+
uses: actions/setup-node@v3
36+
with:
37+
node-version: 21
38+
- name: Install pnpm
39+
run: |
40+
corepack enable
41+
corepack prepare pnpm@latest --activate
42+
- name: Install dependencies
43+
run: pnpm install
44+
- name: Typecheck
45+
run: pnpm typecheck
46+
47+
test:
48+
runs-on: ubuntu-latest
49+
services:
50+
postgres:
51+
image: pgvector/pgvector:0.8.0-pg17
52+
ports:
53+
- 5432:5432
54+
env:
55+
POSTGRES_USER: root
56+
POSTGRES_PASSWORD: root
57+
POSTGRES_DB: app
58+
options: >-
59+
--health-cmd="pg_isready -U postgres"
60+
--health-interval=10s
61+
--health-timeout=5s
62+
--health-retries=5
63+
redis:
64+
image: redis:latest
65+
ports:
66+
- 6379:6379
67+
options: >-
68+
--health-cmd="redis-cli ping"
69+
--health-interval=10s
70+
--health-timeout=5s
71+
--health-retries=5
72+
steps:
73+
- uses: actions/checkout@v4
74+
- uses: pnpm/action-setup@v4
75+
with:
76+
run_install: false
77+
- name: Setup Node.JS
78+
uses: actions/setup-node@v3
79+
with:
80+
node-version: 20.14.0
81+
- name: Install dependencies
82+
run: pnpm install
83+
- name: Run tests
84+
run: pnpm run test
85+
86+
security:
87+
runs-on: ubuntu-latest
88+
if: github.event_name == 'pull_request'
89+
steps:
90+
- uses: actions/checkout@v4
91+
- name: Run Trivy vulnerability scanner
92+
uses: aquasecurity/trivy-action@master
93+
with:
94+
scan-type: 'fs'
95+
scan-ref: '.'
96+
format: 'sarif'
97+
output: 'trivy-results.sarif'
98+
continue-on-error: true
99+
100+
- name: Upload Trivy scan results
101+
uses: github/codeql-action/upload-sarif@v3
102+
if: always()
103+
with:
104+
sarif_file: 'trivy-results.sarif'
105+
continue-on-error: true

.github/workflows/on-push-to-main.yml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@ jobs:
6363
needs: build-and-push-image
6464

6565
steps:
66-
- name: Checkout code
67-
uses: actions/checkout@v4
66+
- name: Checkout code
67+
uses: actions/checkout@v4
6868

69-
- name: Dokploy Deployment
70-
run: |
71-
curl -X 'POST' \
72-
"${{ secrets.DOKPLOY_URL }}/api/trpc/application.deploy" \
73-
-H 'accept: application/json' \
74-
-H 'Content-Type: application/json' \
75-
-H "x-api-key: ${{ secrets.DOKPLOY_AUTH_TOKEN }}" \
76-
-d "{\"json\": {\"applicationId\": \"${{ secrets.DOKPLOY_APPLICATION_ID }}\"}}" \
77-
-w "%{http_code}" \
78-
-o /dev/null \
79-
-s
69+
- name: Dokploy Deployment
70+
run: |
71+
curl -X 'POST' \
72+
"${{ secrets.DOKPLOY_URL }}/api/trpc/application.deploy" \
73+
-H 'accept: application/json' \
74+
-H 'Content-Type: application/json' \
75+
-H "x-api-key: ${{ secrets.DOKPLOY_AUTH_TOKEN }}" \
76+
-d "{\"json\": {\"applicationId\": \"${{ secrets.DOKPLOY_APPLICATION_ID }}\"}}" \
77+
-w "%{http_code}" \
78+
-o /dev/null \
79+
-s

README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ A modern full-stack monorepo boilerplate featuring AdonisJS backend, TanStack St
55
## 🚀 Tech Stack
66

77
### Backend
8+
89
- **[AdonisJS v6](https://adonisjs.com/)** - Node.js web framework
910
- **PostgreSQL** - Database
1011
- **Lucid ORM** - Database toolkit
@@ -16,6 +17,7 @@ A modern full-stack monorepo boilerplate featuring AdonisJS backend, TanStack St
1617
- **Sentry** - Error tracking and monitoring
1718

1819
### Frontend
20+
1921
- **[TanStack Start](https://tanstack.com/start)** - Full-stack React framework
2022
- **[TanStack Router](https://tanstack.com/router)** - Type-safe routing
2123
- **[TanStack Query](https://tanstack.com/query)** - Server state management
@@ -26,13 +28,15 @@ A modern full-stack monorepo boilerplate featuring AdonisJS backend, TanStack St
2628
- **Cloudflare** - Optional deployment target
2729

2830
### Design System
31+
2932
- **[Radix UI](https://www.radix-ui.com/)** - Unstyled, accessible components
3033
- **Tailwind CSS** - Styling framework
3134
- **[Lucide Icons](https://lucide.dev/)** - Icon library
3235
- **[dnd-kit](https://dndkit.com/)** - Drag and drop functionality
3336
- **Recharts** - Chart components
3437

3538
### Monorepo Tools
39+
3640
- **[pnpm](https://pnpm.io/)** - Fast, disk space efficient package manager
3741
- **[Turbo](https://turbo.build/)** - High-performance build system
3842
- **Docker** - Containerization for development and deployment
@@ -89,6 +93,7 @@ pnpm install
8993
Create `.env` files for both backend and frontend:
9094

9195
**Backend** (`apps/backend/.env`):
96+
9297
```env
9398
PORT=3333
9499
HOST=0.0.0.0
@@ -125,6 +130,7 @@ STRIPE_SECRET=your_stripe_secret
125130
```
126131

127132
**Frontend** (`apps/frontend/.env`):
133+
128134
```env
129135
VITE_API_URL=http://localhost:3333
130136
```
@@ -137,6 +143,7 @@ pnpm dev
137143
```
138144

139145
This command will:
146+
140147
1. Start Docker containers (PostgreSQL)
141148
2. Start the backend server (http://localhost:3333)
142149
3. Start the frontend server (http://localhost:3000)
@@ -242,6 +249,7 @@ pnpm intlayer build
242249
## 🔑 Key Features
243250

244251
### Authentication & Authorization
252+
245253
- Email/password authentication
246254
- Email verification system
247255
- Password reset functionality
@@ -250,11 +258,13 @@ pnpm intlayer build
250258
- Session management
251259

252260
### Payment Processing
261+
253262
- Stripe integration via Shopkeeper
254263
- Subscription management
255264
- Customer billing portal
256265

257266
### Developer Experience
267+
258268
- Type-safe API client (Tuyau)
259269
- Hot module replacement
260270
- Auto-generated route types
@@ -263,11 +273,13 @@ pnpm intlayer build
263273
- Docker-based development environment
264274

265275
### Internationalization
276+
266277
- Multi-language support via Intlayer
267278
- Localized routing
268279
- Content management system
269280

270281
### UI/UX
282+
271283
- Modern, accessible component library
272284
- Responsive design
273285
- Dark mode support (via next-themes)
@@ -297,4 +309,3 @@ This is a boilerplate project. Feel free to fork and customize for your needs.
297309
---
298310

299311
**Happy Coding!** 🎉
300-

0 commit comments

Comments
 (0)