feat: add .gitignore

This commit is contained in:
Chen Gu
2026-05-10 16:13:59 +08:00
parent b84f111e8f
commit 9b617ee9ef
2 changed files with 93 additions and 20 deletions

20
.env
View File

@@ -1,20 +0,0 @@
# 数据库连接
DATABASE_URL="postgresql://maqt:maqt123456@localhost:5432/maqt?schema=public"
# JWT 密钥
JWT_SECRET="maqt-jwt-secret-key-2026-change-in-production"
# JWT 过期时间
JWT_EXPIRES_IN="7d"
# 数据加密密钥32字节
ENCRYPTION_KEY="maqt-encryption-key-32bytes!"
# 服务端口
PORT=3001
# 环境
NODE_ENV="development"
# VIP 卡密批次密钥
BATCH_SECRET="maqt-batch-secret-2026"

93
.gitignore vendored Normal file
View File

@@ -0,0 +1,93 @@
# 环境变量(敏感信息)
.env
.env.local
.env.*.local
!.env.example
# 依赖
node_modules/
.pnp
.pnp.js
# 构建
dist/
build/
out/
*.tsbuildinfo
# 日志
logs/
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
# 运行时数据
pids/
*.pid
*.seed
*.pid.lock
# 系统文件
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
Desktop.ini
# IDE / 编辑器
.idea/
.vscode/
*.swp
*.swo
*.sublime-workspace
*.sublime-project
.fleet/
# 测试
coverage/
.nyc_output/
*.lcov
# Prisma
prisma/*.db
prisma/*.db-journal
migrations/
# 临时文件
*.tmp
*.temp
.cache/
.parcel-cache/
# Docker
docker-compose.override.yml
# 打包文件
*.zip
*.tar.gz
*.tgz
*.rar
# 密钥和证书(不应上传)
*.pem
*.key
*.cert
*.crt
# 调试
.eslintcache
.stylelintcache
# TypeScript
*.tsbuildinfo
# 其他
*.bak
*.backup
*.orig