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
Copy file name to clipboardExpand all lines: README.md
+43Lines changed: 43 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -52,6 +52,49 @@ To build the TM module from source, follow these steps:
52
52
```
53
53
- Open your browser and navigate to http://localhost:8080/swagger-ui.html#!/
54
54
55
+
## Setting Up Commit Hooks
56
+
57
+
This project uses Git hooks to enforce consistent code quality and commit message standards. Even though this is a Java project, the hooks are powered by Node.js. Follow these steps to set up the hooks locally:
58
+
59
+
### Prerequisites
60
+
- Node.js (v14 or later)
61
+
- npm (comes with Node.js)
62
+
63
+
### Setup Steps
64
+
65
+
1.**Install Node.js and npm**
66
+
- Download and install from [nodejs.org](https://nodejs.org/)
67
+
- Verify installation with:
68
+
```
69
+
node --version
70
+
npm --version
71
+
```
72
+
2. **Install dependencies**
73
+
- From the project root directory, run:
74
+
```
75
+
npm ci
76
+
```
77
+
- This will install all required dependencies including Husky and commitlint
78
+
3. **Verify hooks installation**
79
+
- The hooks should be automatically installed by Husky
80
+
- You can verify by checking if the `.husky` directory contains executable hooks
81
+
### Commit Message Convention
82
+
This project follows a specific commit message format:
83
+
- Format: `type(scope): subject`
84
+
- Example: `feat(login): add remember me functionality`
85
+
Types include:
86
+
- `feat`: A new feature
87
+
- `fix`: A bug fix
88
+
- `docs`: Documentation changes
89
+
- `style`: Code style changes (formatting, etc.)
90
+
- `refactor`: Code changes that neither fix bugs nor add features
91
+
- `perf`: Performance improvements
92
+
- `test`: Adding or fixing tests
93
+
- `build`: Changes to build process or tools
94
+
- `ci`: Changes to CI configuration
95
+
- `chore`: Other changes (e.g., maintenance tasks, dependencies)
96
+
Your commit messages will be automatically validated when you commit, ensuring project consistency.
97
+
55
98
## Usage
56
99
57
100
All the features of the TM module have been exposed as REST endpoints. For detailed information on how to use the service, refer to the SWAGGER API specification.
0 commit comments