Files
marco.chan ea661d2afe Add dotenv configuration and user management routes
- Introduced dotenv for environment variable management.
- Created config module to handle configuration settings.
- Added user controller with functions to get and create users.
- Implemented user routes for API endpoints.
- Updated package.json and yarn.lock to include dotenv dependency.
2026-09-03 15:47:26 +08:00

32 lines
746 B
JSON

{
"name": "study-koa-trest",
"packageManager": "yarn@4.18.0",
"type": "module",
"scripts": {
"dev": "tsx --watch ./src/index.ts",
"start": "node ./dist/index.js",
"build": "tsc",
"clean": "rm -rf dist",
"compile": "yarn clean && yarn build",
"script": "tsx"
},
"dependencies": {
"@jig-software/trest": "2.0.0-beta",
"@koa/cors": "^5.0.0",
"@koa/router": "^15.7.0",
"dotenv": "^17.4.2",
"koa": "^3.2.1",
"koa-bodyparser": "^4.4.1",
"path": "^0.12.7"
},
"devDependencies": {
"@types/koa": "^3.0.3",
"@types/koa-bodyparser": "^4",
"@types/koa__cors": "^5",
"@types/node": "^26.4.1",
"nodemon": "^3.1.14",
"tsx": "^4.23.13",
"typescript": "^5.9.3"
}
}