Add project scaffolding and development infrastructure: - Add environment configuration files (.env.development, .env.example) with database, JWT, security, AI integration, logging, and CORS settings - Add .gitignore to exclude build artifacts, logs, IDE files, and environment variables - Add .prettierrc with single quotes and trailing commas configuration - Add multi-stage Dockerfile with development, build, and production stages - Ad
12 lines
465 B
TypeScript
12 lines
465 B
TypeScript
import { registerAs } from '@nestjs/config';
|
|
|
|
export default registerAs('database', () => ({
|
|
host: process.env.DB_HOST || 'localhost',
|
|
port: parseInt(process.env.DB_PORT || '5432', 10),
|
|
username: process.env.DB_USERNAME || 'finance_user',
|
|
password: process.env.DB_PASSWORD || 'dev_password_123',
|
|
database: process.env.DB_NAME || 'finance_app',
|
|
synchronize: process.env.NODE_ENV === 'development',
|
|
logging: process.env.NODE_ENV === 'development',
|
|
}));
|