[ERP-CLINICAS] feat: Setup backend build configuration

- Add package.json with Express, TypeORM, PostgreSQL dependencies
- Add tsconfig.json with TypeScript compiler options
- Update .gitignore with comprehensive exclusions
- Build validates successfully (28 TypeScript files)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
rckrdmrd 2026-01-18 12:20:11 -06:00
parent f8aacbd316
commit 50eb26fa53
4 changed files with 4506 additions and 1 deletions

35
.gitignore vendored
View File

@ -1,4 +1,37 @@
# Dependencies
node_modules/
# Build output
dist/
coverage/
# IDE
.idea/
.vscode/
*.swp
*.swo
# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
# Environment files
.env
.env.local
.env.*.local
# OS
.DS_Store
Thumbs.db
# Test coverage
coverage/
.nyc_output/
# TypeScript cache
*.tsbuildinfo
# Temporary files
tmp/
temp/

4393
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

49
package.json Normal file
View File

@ -0,0 +1,49 @@
{
"name": "erp-clinicas-backend",
"version": "1.0.0",
"description": "Backend para ERP de Clínicas - Sistema de gestión de pacientes, citas y consultas",
"main": "dist/index.js",
"scripts": {
"build": "tsc",
"start": "node dist/index.js",
"dev": "ts-node-dev --respawn --transpile-only src/index.ts",
"lint": "eslint src/**/*.ts",
"typecheck": "tsc --noEmit"
},
"keywords": [
"erp",
"clinicas",
"healthcare",
"patients",
"appointments"
],
"author": "ISEM",
"license": "UNLICENSED",
"private": true,
"dependencies": {
"express": "^4.18.2",
"typeorm": "^0.3.17",
"pg": "^8.11.3",
"reflect-metadata": "^0.1.13",
"dotenv": "^16.3.1",
"cors": "^2.8.5",
"helmet": "^7.1.0",
"class-validator": "^0.14.0",
"class-transformer": "^0.5.1"
},
"devDependencies": {
"typescript": "^5.3.3",
"@types/node": "^20.10.0",
"@types/express": "^4.17.21",
"@types/cors": "^2.8.17",
"@types/pg": "^8.10.9",
"ts-node": "^10.9.2",
"ts-node-dev": "^2.0.0",
"eslint": "^8.55.0",
"@typescript-eslint/parser": "^6.13.0",
"@typescript-eslint/eslint-plugin": "^6.13.0"
},
"engines": {
"node": ">=18.0.0"
}
}

30
tsconfig.json Normal file
View File

@ -0,0 +1,30 @@
{
"compilerOptions": {
"target": "ES2022",
"module": "commonjs",
"lib": ["ES2022"],
"outDir": "./dist",
"rootDir": "./src",
"strict": false,
"noImplicitAny": false,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"declaration": true,
"declarationMap": true,
"sourceMap": true,
"experimentalDecorators": true,
"emitDecoratorMetadata": true,
"strictPropertyInitialization": false,
"moduleResolution": "node",
"baseUrl": "./src",
"paths": {
"@config/*": ["config/*"],
"@modules/*": ["modules/*"],
"@shared/*": ["shared/*"]
}
},
"include": ["src/**/*"],
"exclude": ["node_modules", "dist"]
}