generated from azures04/Base-REST-API
Introduce DB support and repos: add modules/database.js (connection pool + runDDL) and SQL DDL files (data/ddl/*) for servers, users, providers, identities and credentials. Add repository layers: users, servers, providers, identities, credentials. Update server.js to run DDL at startup. Update .env.example with DB settings and bump dependencies in package.json/package-lock.json (add mariadb, bump dotenv/helmet/path-to-regexp/zod and dev tool upgrades). Error handling and logging included for DDL and repo operations.
43 lines
997 B
JSON
43 lines
997 B
JSON
{
|
|
"name": "base-rest-api",
|
|
"version": "0.0.1-alpha",
|
|
"description": "",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://gitea.azures.fr/azures04/Base-REST-API"
|
|
},
|
|
"license": "AGPL-3.0-only",
|
|
"author": {
|
|
"name": "azures04",
|
|
"url": "https://gitea.azures.fr/azures04/Base-REST-API",
|
|
"email": "gilleslazure04@gmail.com"
|
|
},
|
|
"type": "commonjs",
|
|
"main": "server.js",
|
|
"scripts": {
|
|
"start:dev": "nodemon .",
|
|
"start": "node .",
|
|
"lint": "eslint .",
|
|
"lint:fix": "eslint . --fix"
|
|
},
|
|
"homepage": "https://gitea.azures.fr/azures04/Base-REST-API",
|
|
"readme": "https://gitea.azures.fr/azures04/Base-REST-API/src/branch/main/README.md",
|
|
"dependencies": {
|
|
"colors": "^1.4.0",
|
|
"cors": "^2.8.6",
|
|
"dotenv": "^17.4.2",
|
|
"express": "^5.2.1",
|
|
"helmet": "^8.3.0",
|
|
"hpp": "^0.2.3",
|
|
"mariadb": "^3.5.3",
|
|
"path-to-regexp": "^8.4.2",
|
|
"zod": "^4.4.3"
|
|
},
|
|
"devDependencies": {
|
|
"@eslint/js": "^10.0.1",
|
|
"eslint": "^10.9.1",
|
|
"globals": "^17.11.0",
|
|
"nodemon": "^3.1.14"
|
|
}
|
|
}
|