Skip to content

Commit 1d5635b

Browse files
author
secretariatv
committed
done swagger api doc config
1 parent 60188c8 commit 1d5635b

File tree

9 files changed

+285
-3
lines changed

9 files changed

+285
-3
lines changed

.prettierrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@
22
"printWidth": 120,
33
"semi": true,
44
"singleQuote": true,
5-
"bracketSpacing": false
5+
"bracketSpacing": false,
6+
"tabWidth": 2,
7+
"useTabs": false
68
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ A comprehensive and professional Node.js backend boilerplate designed for buildi
6868
- [x] **Error Handling**: Centralized error handling mechanism
6969
- [ ] **Testing Framework**: Vitest for reliable unit and integration testing
7070
- [ ] **Communicate with fe using session**: Implement session-based communication with `express-session`
71+
- [ ] **API Documentation**: Add Swagger UI
7172

7273
### **Enhancements**
7374

package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828
"@eslint/js": "^9.15.0",
2929
"@types/express": "^5.0.0",
3030
"@types/supertest": "^6.0.2",
31+
"@types/swagger-jsdoc": "^6.0.4",
32+
"@types/swagger-ui-express": "^4.1.7",
3133
"eslint": "^9.15.0",
3234
"globals": "^15.12.0",
3335
"husky": "^9.1.7",
@@ -43,6 +45,8 @@
4345
"dotenv": "^16.4.5",
4446
"express": "^4.21.1",
4547
"mongoose": "^8.8.2",
48+
"swagger-jsdoc": "^6.2.8",
49+
"swagger-ui-express": "^5.0.1",
4650
"ts-node": "^10.9.2"
4751
}
4852
}

0 commit comments

Comments
 (0)