You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All notable changes to this project are documented in this file.
4
+
5
+
The format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) and this project follows [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
+
7
+
---
8
+
9
+
# [Unreleased]
10
+
11
+
## Added
12
+
13
+
### Authentication
14
+
15
+
* Added user registration and login support.
16
+
* Implemented token generation for authenticated sessions.
17
+
* Added OTP verification for phone and email.
18
+
* Added password reset using OTP.
19
+
* Added Joi validation for authentication and OTP routes.
20
+
21
+
### Testing
22
+
23
+
* Added Jest and Supertest for API testing.
24
+
* Added a `tests/` directory with base configuration.
25
+
* Added initial test examples such as `health.test.js`.
26
+
27
+
### Security
28
+
29
+
* Added Helmet middleware for HTTP header security.
30
+
* Added express-rate-limit for request rate limiting.
31
+
* Added mongo-sanitize and xss-clean to prevent injection attacks.
32
+
* Added configurable CORS middleware.
33
+
34
+
### Docker
35
+
36
+
* Added Dockerfile for containerized deployments.
37
+
* Added docker-compose configuration for local API and MongoDB setup.
38
+
* Added `.dockerignore` for optimized Docker builds.
39
+
40
+
### Monitoring
41
+
42
+
* Added `/health` endpoint for service status.
43
+
* Added `/health/ready` endpoint for readiness checks.
44
+
45
+
---
46
+
47
+
## Changed
48
+
49
+
### CLI Improvements
50
+
51
+
* Improved CLI output for better readability.
52
+
* Removed unnecessary visual elements from CLI output.
53
+
* Moved CLI messages to a centralized constants file.
54
+
55
+
### API Message Handling
56
+
57
+
* Added `src/constants/Messages.js` for centralized API messages.
58
+
* Controllers and services now use message constants instead of inline text.
59
+
60
+
### Logging
61
+
62
+
* Updated internal logs to follow a structured format.
63
+
64
+
Example:
65
+
66
+
```
67
+
[FileUpload] Upload started
68
+
[Cloudinary] File uploaded successfully
69
+
```
70
+
71
+
### Environment Variables
72
+
73
+
Updated Cloudinary environment variable names:
74
+
75
+
| Old Name | New Name |
76
+
| ------------- | ------------------ |
77
+
| CLOUD_NAME | CLOUDINARY_NAME |
78
+
| CLOUD_API_KEY | CLOUDINARY_API_KEY |
79
+
80
+
---
81
+
82
+
## Documentation
83
+
84
+
Added documentation in the `docs/` directory:
85
+
86
+
*`setup.md` – Project setup instructions
87
+
*`authentication.md` – Authentication and OTP usage
88
+
*`services.md` – Email, AWS S3, and Cloudinary configuration
89
+
*`cli-usage.md` – CLI command usage
90
+
91
+
Updated the root `README.md` with clearer setup instructions.
92
+
93
+
---
94
+
95
+
## Fixed
96
+
97
+
* Fixed an issue in the CLI `init` command related to inquirer prompt structure.
98
+
* Removed duplicate documentation paths.
99
+
* Cleaned formatting issues in documentation files.
0 commit comments