- What is Database?
- SQL vs. NoSQL
- MongoDB Atlas
- Prisma ORM
- File Uploading
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "name": "lecture16", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "dev": "npx nodemon --exec tsx src/index.ts", | |
| "build": "npx tsc", | |
| "serve": "node dist/index.js" | |
| }, |
Install K6 for Windows
- Winget:
winget install k6 - Download from official website k6.io
- Lecture 16 Recap
- Middleware #1:
loggingmiddleware (Morgan) - Revise HTTP response
metadata - Proper HTTP
status codefor response
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Logs | |
| logs | |
| *.log | |
| npm-debug.log* | |
| yarn-debug.log* | |
| yarn-error.log* | |
| lerna-debug.log* | |
| # Diagnostic reports (https://nodejs.org/api/report.html) | |
| report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| "compilerOptions": { | |
| /* Base Options: */ | |
| "esModuleInterop": true, | |
| "skipLibCheck": true, | |
| "target": "es2022", | |
| "allowJs": true, | |
| "resolveJsonModule": true, | |
| "moduleDetection": "force", | |
| "isolatedModules": true, |
Please download Insomnia app an install in your PC. This a tool for testing your API.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| presets: [ | |
| ["@babel/preset-env", { targets: { node: "current" } }], | |
| "@babel/preset-typescript", | |
| ], | |
| }; |
NewerOlder