Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
137 changes: 137 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
# Node.js
node_modules/
npm-debug.log*
yarn-debug.log*
yarn-error.log*
.pnpm-debug.log*

# Environment files
.env
.env.local
.env.development.local
.env.test.local
.env.production.local

# Logs
logs/
*.log
lerna-debug.log*
.pnpm-debug.log*

# Runtime data
pids/
*.pid
*.seed
*.pid.lock

# Coverage directory used by tools like istanbul
coverage/
*.lcov

# nyc test coverage
.nyc_output

# Dependency directories
jspm_packages/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/

# Vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*

# IDE files
.vscode/
.idea/
*.swp
*.swo

# OS generated files
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db

# Git
.git/
.gitignore

# Documentation
README.md
API.md
CONTRIBUTING.md
DEPLOYMENT.md
WARP.md

# Testing
coverage/
.nyc_output/

# Temporary files
tmp/
temp/

# Build outputs
build/
dist/
72 changes: 72 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# Environment Configuration for Abwab Digital API
# Copy this file to .env and fill in your actual values

# Application Environment
NODE_ENV=development

# Database Configuration
MONGO_URI=mongodb://localhost:27017/abwab-digital

# Server Configuration
BASE_URL=http://localhost:4000
PORT=4000

# JWT Configuration
JWT_SECRET_KEY=your-super-secret-jwt-key-here-change-this-in-production
JWT_EXPIRE_TIME=7d

# Session Configuration
SESSION_SECRET=your-session-secret-key-here-change-this-in-production

# Email Configuration (Gmail)
GMAIL_USER=your-email@gmail.com
GMAIL_APP_PASSWORD=your-gmail-app-password

# Redis Configuration (Optional - for caching and sessions)
REDIS_URL=redis://localhost:6379

# SSL Configuration (Production only)
SSL_KEY_PATH=/etc/letsencrypt/live/backend.abwabdigital.com/privkey.pem
SSL_CERT_PATH=/etc/letsencrypt/live/backend.abwabdigital.com/fullchain.pem

# File Upload Configuration
MAX_FILE_SIZE=10485760
UPLOAD_PATH=uploads/

# Rate Limiting
RATE_LIMIT_WINDOW_MS=900000
RATE_LIMIT_MAX_REQUESTS=100

# CORS Configuration
ALLOWED_ORIGINS=*

# Logging Level
LOG_LEVEL=info

# Newsletter Cron Configuration
NEWSLETTER_WEEKLY_DAY=2
NEWSLETTER_WEEKLY_HOUR=11
NEWSLETTER_WEEKLY_MINUTE=0
NEWSLETTER_MONTHLY_DAY=1
NEWSLETTER_MONTHLY_HOUR=10
NEWSLETTER_MONTHLY_MINUTE=0

# Admin Configuration
ADMIN_EMAIL=admin@abwabdigital.com
ADMIN_PASSWORD=your-secure-admin-password

# API Configuration
API_VERSION=v1
API_PREFIX=api

# Security Configuration
BCRYPT_SALT_ROUNDS=12
JWT_REFRESH_SECRET=your-refresh-token-secret

# External Services (Optional)
GOOGLE_ANALYTICS_ID=your-ga-id
FACEBOOK_PIXEL_ID=your-pixel-id

# Development Configuration
DEBUG=true
MORGAN_FORMAT=dev
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ lerna-debug.log*
# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

/uploads/
public/uploads/
storage/uploads/

# Runtime data
pids
*.pid
Expand Down
Loading
Loading