Basic structure of the project

- Added a model with in-memory database, and routes, controller and
middleware to enable making initial CRUD calls to endpoints;

- Added jest and an initial test.
This commit is contained in:
Rodrigo Pinto 2025-04-02 16:34:16 -03:00
commit 9c4ea4ca90
11 changed files with 3841 additions and 1 deletions

View file

@ -5,8 +5,9 @@
"main": "dist/app.js",
"scripts": {
"start": "tsc && node dist/app.js",
"dev": "nodemon --watch 'src/**/*.ts' --exec 'ts-node' src/app.ts",
"lint": "eslint . --ext .ts",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "jest --watch"
},
"repository": {
"type": "git",
@ -23,8 +24,12 @@
"devDependencies": {
"@eslint/js": "^9.23.0",
"@types/express": "^5.0.1",
"@types/jest": "^29.5.14",
"eslint": "^9.23.0",
"globals": "^16.0.0",
"jest": "^29.7.0",
"ts-jest": "^29.3.1",
"ts-node": "^10.9.2",
"typescript": "^5.8.2",
"typescript-eslint": "^8.29.0"
},