Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .air.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
root = "."
tmp_dir = "tmp"

[build]
cmd = "go build -o ./tmp/main ."
bin = "tmp/main"
full_bin = "APP_ENV=dev ./tmp/main"
include_ext = ["go", "tpl", "tmpl", "html"]
exclude_dir = ["assets", "tmp", "vendor", "bin"]
include_dir = []
exclude_file = []
delay = 1000
stop_on_error = true
log = "build-errors.log"
poll = false
poll_interval = 0

[color]
main = "magenta"
watcher = "cyan"
build = "yellow"
green = "green"
33 changes: 27 additions & 6 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,33 @@ FIGMA_REDIRECT_URI=http://localhost:3000/auth/callback
# API Configuration
FIGMA_ACCESS_TOKEN=optional_access_token_for_testing
FIGMA_TEAM_ID=your_team_id
FIGMA_FILE_KEY=your_file_key

# Webhook Configuration
WEBHOOK_SECRET=your_webhook_secret
WEBHOOK_URL=https://your-domain.com/webhook

# Server Configuration
SERVER_PORT=3000
SERVER_HOST=localhost
SERVER_HOST=0.0.0.0
SERVER_TIMEOUT=30s
ENVIRONMENT=development

# Database Configuration
DATABASE_DSN=capturecrafy.db
DATABASE_MAX_OPEN=25
DATABASE_MAX_IDLE=5
DATABASE_MAX_LIFETIME=5m

# Rate Limiting Configuration
RATE_LIMIT_ENABLED=true
RATE_LIMIT_RPM=600
RATE_LIMIT_RESET=1m

# Logging Configuration
LOG_LEVEL=info
LOG_FORMAT=json

# Sync Service Configuration
SYNC_ENABLED=true
SYNC_BATCH_SIZE=10
SYNC_INTERVAL=5s

# Webhook Configuration (if needed)
WEBHOOK_SECRET=your_webhook_secret
WEBHOOK_URL=https://your-domain.com/webhook
Loading
Loading