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
+5-47Lines changed: 5 additions & 47 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,57 +19,15 @@ Prerequisites
19
19
* MySQL
20
20
21
21
## Environment and setup
22
-
23
-
1. Install dependencies `mvn clean install`
24
-
2. You can copy `admin_example.properties` to `admin_local.properties` and edit the file accordingly. The file is under `src/main/environment` folder.
25
-
3. Run the spring server with local configuration `mvn spring-boot:run -DENV_VAR=local`
22
+
1. Enable git hooks (run once after cloning):
23
+
- Run the command `git config core.hooksPath .git-hooks`.
24
+
2. Install dependencies `mvn clean install`
25
+
3. You can copy `admin_example.properties` to `admin_local.properties` and edit the file accordingly. The file is under `src/main/environment` folder.
26
+
4. Run the spring server with local configuration `mvn spring-boot:run -DENV_VAR=local`
26
27
27
28
## Installation
28
29
This service has been tested on Wildfly as the application server. To install the admin module, kindly refer to Installation Guide for [API Repository](https://piramal-swasthya.gitbook.io/amrit/developer-guide/development-environment-setup/installation-instructions/for-api-repositories) for guidance.
29
30
30
-
## Setting Up Commit Hooks
31
-
32
-
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:
33
-
34
-
### Prerequisites
35
-
- Node.js (v18 or later)
36
-
- npm (comes with Node.js)
37
-
38
-
### Setup Steps
39
-
40
-
1.**Install Node.js and npm**
41
-
- Download and install from [nodejs.org](https://nodejs.org/)
42
-
- Verify installation with:
43
-
```
44
-
node --version
45
-
npm --version
46
-
```
47
-
2. **Install dependencies**
48
-
- From the project root directory, run:
49
-
```
50
-
npm ci
51
-
```
52
-
- This will install all required dependencies including Husky and commitlint
53
-
3. **Verify hooks installation**
54
-
- The hooks should be automatically installed by Husky
55
-
- You can verify by checking if the `.husky` directory contains executable hooks
56
-
### Commit Message Convention
57
-
This project follows a specific commit message format:
58
-
- Format: `type(scope): subject`
59
-
- Example: `feat(login): add remember me functionality`
60
-
Types include:
61
-
- `feat`: A new feature
62
-
- `fix`: A bug fix
63
-
- `docs`: Documentation changes
64
-
- `style`: Code style changes (formatting, etc.)
65
-
- `refactor`: Code changes that neither fix bugs nor add features
66
-
- `perf`: Performance improvements
67
-
- `test`: Adding or fixing tests
68
-
- `build`: Changes to build process or tools
69
-
- `ci`: Changes to CI configuration
70
-
- `chore`: Other changes (e.g., maintenance tasks, dependencies)
71
-
Your commit messages will be automatically validated when you commit, ensuring project consistency.
72
-
73
31
## Usage
74
32
All the features have been exposed as REST endpoints.
75
33
Refer to the SWAGGER API specification for details.
0 commit comments