Skip to content

Commit 32b38f3

Browse files
committed
feat: init commit
0 parents  commit 32b38f3

37 files changed

+8950
-0
lines changed

.changeset/config.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "public",
8+
"baseBranch": "master",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.dockerignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
.next
3+
.git

.env.example

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Server Settings
2+
APP_NAME=Example
3+
NODE_ENV=development
4+
PORT=3000
5+
APP_URL=http://localhost
6+
FRONTEND_URL=http://localhost:5000
7+
API_VERSION=v1
8+
9+
# JWT settings
10+
JWT_SECRET_KEY="very-secret-key"
11+
12+
# Session secret key
13+
SESSION_SECRET="very-secret-key"
14+
15+
# Database settings
16+
DB_CONNECTION=psql
17+
DB_HOST=127.0.0.1
18+
DB_PORT=3306
19+
DB_DATABASE=example
20+
DB_USERNAME=root
21+
DB_PASSWORD=
22+
23+
# Mail settings
24+
MAIL_MAILER=smtp
25+
MAIL_HOST=127.0.0.1
26+
MAIL_PORT=1025
27+
MAIL_USERNAME=user
28+
MAIL_PASSWORD=password
29+
MAIL_ENCRYPTION=null
30+
MAIL_FROM_ADDRESS="[email protected]"
31+
MAIL_FROM_NAME="${APP_NAME}"
32+
33+
# Redis settings
34+
REDIS_HOST=127.0.0.1
35+
REDIS_PASSWORD=null
36+
REDIS_PORT=6379

.env.production

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# Server Settings
2+
APP_NAME=Example
3+
NODE_ENV=production
4+
PORT=3000
5+
APP_URL=http://localhost
6+
FRONTEND_URL=http://localhost:5000
7+
API_VERSION=v1
8+
9+
# JWT settings
10+
JWT_SECRET_KEY="very-secret-key"
11+
12+
# Session secret key
13+
SESSION_SECRET="very-secret-key"
14+
15+
# Database settings
16+
DB_CONNECTION=psql
17+
DB_HOST=postgres
18+
DB_PORT=3306
19+
DB_DATABASE=example
20+
DB_USERNAME=root
21+
DB_PASSWORD=
22+
23+
# Mail settings
24+
MAIL_MAILER=smtp
25+
MAIL_HOST=mailhog
26+
MAIL_PORT=1025
27+
MAIL_USERNAME=user
28+
MAIL_PASSWORD=password
29+
MAIL_ENCRYPTION=null
30+
MAIL_FROM_ADDRESS="[email protected]"
31+
MAIL_FROM_NAME="${APP_NAME}"
32+
33+
# Redis settings
34+
REDIS_HOST=redis
35+
REDIS_PASSWORD=null
36+
REDIS_PORT=6379

.github/FUNDING.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# These are supported funding model platforms
2+
3+
github: ru44
4+
patreon: # Replace with a single Patreon username
5+
open_collective: # Replace with a single Open Collective username
6+
ko_fi: ru44y
7+
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
8+
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
9+
liberapay: # Replace with a single Liberapay username
10+
issuehunt: # Replace with a single IssueHunt username
11+
otechie: # Replace with a single Otechie username
12+
lfx_crowdfunding: # Replace with a single LFX Crowdfunding project-name e.g., cloud-foundry
13+
custom: # Replace with up to 4 custom sponsorship URLs e.g., ['link1', 'link2']

.github/ISSUE_TEMPLATE/bug_report.md

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.

.github/dependabot.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "npm" # See documentation for possible values
4+
directory: "/" # Location of package manifests
5+
schedule:
6+
interval: "weekly"

.github/workflows/main.yml

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- "master"
7+
pull_request:
8+
branches:
9+
- "master"
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
- uses: pnpm/action-setup@v4
19+
with:
20+
version: 8
21+
22+
- uses: actions/setup-node@v4
23+
with:
24+
node-version: 20.x
25+
cache: "pnpm"
26+
27+
- name: Install dependencies
28+
run: pnpm install
29+
30+
- name: Lint and build
31+
run: pnpm lint && pnpm build
32+
33+
# - name: Create Release Pull Request
34+
# id: changesets
35+
# uses: changesets/action@v1
36+
# with:
37+
# version: pnpm changeset version
38+
# commit: "chore: version packages"
39+
# title: "chore: version packages"
40+
# env:
41+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
# compiled output
2+
/dist
3+
/node_modules
4+
/build
5+
6+
# Logs
7+
logs
8+
*.log
9+
npm-debug.log*
10+
pnpm-debug.log*
11+
yarn-debug.log*
12+
yarn-error.log*
13+
lerna-debug.log*
14+
15+
# OS
16+
.DS_Store
17+
18+
# Tests
19+
/coverage
20+
/.nyc_output
21+
22+
# IDEs and editors
23+
/.idea
24+
.project
25+
.classpath
26+
.c9/
27+
*.launch
28+
.settings/
29+
*.sublime-workspace
30+
31+
# IDE - VSCode
32+
.vscode/*
33+
!.vscode/settings.json
34+
!.vscode/tasks.json
35+
!.vscode/launch.json
36+
!.vscode/extensions.json
37+
38+
# dotenv environment variable files
39+
.env
40+
.env.development.local
41+
.env.test.local
42+
.env.production.local
43+
.env.local
44+
45+
# temp directory
46+
.temp
47+
.tmp
48+
49+
# Runtime data
50+
pids
51+
*.pid
52+
*.seed
53+
*.pid.lock
54+
55+
# Diagnostic reports (https://nodejs.org/api/report.html)
56+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

.husky/commit-msg

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Run commitlint with the commit message passed as an argument
2+
npx commitlint --edit $1

.husky/pre-commit

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
pnpm lint
2+
3+
npx lint-staged

.lintstagedrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.ts": ["prettier --write", "eslint --fix"]
3+
}

.prettierrc

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"$schema": "https://json.schemastore.org/prettierrc",
3+
"semi": false,
4+
"tabWidth": 2,
5+
"singleQuote": true,
6+
"printWidth": 100,
7+
"trailingComma": "none"
8+
}

0 commit comments

Comments
 (0)