Features: - Express server on port 9991 with ESM syntax - User registration, login, and session management - Password hashing with bcryptjs - SQLite database with sqlite3 package - User credits and transaction tracking - API key management - Admin endpoints for user management - Stripe and PayPal webhook endpoints (ready for integration) - Rate limiting and error handling - CORS and security headers with helmet Database tables: - users (accounts, subscriptions, credits) - sessions (auth tokens) - api_keys (user API access) - credit_transactions (credit history) - payments (payment tracking)
41 lines
302 B
Plaintext
41 lines
302 B
Plaintext
# Dependencies
|
|
node_modules/
|
|
|
|
# Environment files
|
|
.env
|
|
.env.local
|
|
.env.production
|
|
|
|
# Database
|
|
data/
|
|
*.db
|
|
*.sqlite
|
|
*.sqlite3
|
|
|
|
# Logs
|
|
logs/
|
|
*.log
|
|
npm-debug.log*
|
|
|
|
# IDE
|
|
.vscode/
|
|
.idea/
|
|
*.swp
|
|
*.swo
|
|
*~
|
|
|
|
# OS
|
|
.DS_Store
|
|
Thumbs.db
|
|
|
|
# Build
|
|
dist/
|
|
build/
|
|
|
|
# Test coverage
|
|
coverage/
|
|
|
|
# Temporary files
|
|
tmp/
|
|
temp/
|