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.
This commit is contained in:
1 parent
f0f60add78
commit
ea661d2afe
7 files changed
+121
-16
No files matched your search
+9
-7
@@ -3,19 +3,21 @@
|
||||
"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"
|
||||
"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"
|
||||
"koa-bodyparser": "^4.4.1",
|
||||
"path": "^0.12.7"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/koa": "^3.0.3",
|
||||
|
||||
Reference in new issue
Block a user