Identity API is a microservice which is used for the creation and management of beneficaries.
- Beneficiary Creation
- Beneficiary Search
- Beneficiary Management
For setting up the development environment, please refer to the Developer Guide .
This service consists of two profiles that work together: the main application profile and the 1097_identity profile. Each profile operates on a different port for independent functionality.
# Build and Run
mvn clean install -DENV_VAR=local
mvn spring-boot:run -DENV_VAR=local
# Build and Run (in a new terminal)
mvn clean install -P1097_identity -DENV_VAR=local
mvn spring-boot:run -P1097_identity -DENV_VAR=local
Note: Start the main application before running the 1097_identity profile. Each profile requires the -DENV_VAR=local
parameter for local development.
Detailed information on API endpoints can be found in the API Guide.
- RMNCH (Reproductive, Maternal, Newborn, and Child Health)
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:
- Node.js (v14 or later)
- npm (comes with Node.js)
- Install Node.js and npm
- Download and install from nodejs.org
- Verify installation with:
node --version npm --version
- Install dependencies
- From the project root directory, run:
npm ci
- This will install all required dependencies including Husky and commitlint
- From the project root directory, run:
- Verify hooks installation
- The hooks should be automatically installed by Husky
- You can verify by checking if the
.husky
directory contains executable hooks
This project follows a specific commit message format:
- Format:
type(scope): subject
- Example:
feat(login): add remember me functionality
Types include: feat
: A new featurefix
: A bug fixdocs
: Documentation changesstyle
: Code style changes (formatting, etc.)refactor
: Code changes that neither fix bugs nor add featuresperf
: Performance improvementstest
: Adding or fixing testsbuild
: Changes to build process or toolsci
: Changes to CI configurationchore
: Other changes (e.g., maintenance tasks, dependencies) Your commit messages will be automatically validated when you commit, ensuring project consistency.
All features have been exposed as REST endpoints. Refer to the SWAGGER API specification for details.
If you encounter any issues, bugs, or have feature requests, please file them in the main AMRIT repository. Centralizing all feedback helps us streamline improvements and address concerns efficiently.
We’d love to have you join our community discussions and get real-time support!
Join our Discord server to connect with contributors, ask questions, and stay updated.