config.js
Main configuration file for your application
config.js
Main configuration file for your application
.env
Environment variables for secrets
tsconfig.json
TypeScript compiler options
package.json
Dependencies and scripts
export default { // Application name name: 'My App',
// Server port port: 3000,
// Enable debug mode debug: process.env.NODE_ENV !== 'production',
// Database connection database: { host: 'localhost', port: 5432, name: 'myapp', },};NODE_ENV=developmentPORT=3000DATABASE_URL=postgres://localhost:5432/myappAPI_KEY=your-secret-key| Option | Type | Default | Description |
|---|---|---|---|
name | string | 'App' | Application name |
port | number | 3000 | Server port |
debug | boolean | false | Enable debug logging |
timeout | number | 30000 | Request timeout in ms |
export default { name: 'My App', port: 3000,
// Advanced caching options cache: { enabled: true, ttl: 3600, driver: 'redis', },};