feat(database): add TypeORM configuration and initialize data source

- Added TypeORM and PostgreSQL dependencies to package.json.
- Created data-source.ts to configure the database connection.
- Initialized the data source in index.ts and added logging for successful connection.
- Updated devDependencies to include @types/node for better type support.
This commit is contained in:
2025-10-29 10:44:12 +01:00
parent 58ecaf3c4c
commit 43b7bdd8b4
5 changed files with 1556 additions and 8 deletions

View File

@@ -24,6 +24,7 @@
},
"homepage": "https://github.com/Under-scape/discordbot-ts-template#readme",
"devDependencies": {
"@types/node": "^24.9.2",
"typescript": "^5.9.2"
},
"dependencies": {
@@ -31,6 +32,9 @@
"cron": "^4.3.3",
"discord.js": "^14.24.1",
"dotenv": "^17.2.2",
"ping": "^1.0.0"
"pg": "^8.16.3",
"ping": "^1.0.0",
"reflect-metadata": "^0.2.2",
"typeorm": "^0.3.27"
}
}