Skip to content

fynarfin/ph-ee-community

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌟 ph-ee-community

Welcome to the ph-ee-community repository! This guide will walk you through building the projects, running Checkstyle, raising Pull Requests (PRs), and understanding the services included in this repo.

📦 Services Included

  • ph-ee-bill-pay
  • ph-ee-connector-airtel
  • ph-ee-connector-ams-mifos
  • ph-ee-connector-ams-paygops
  • ph-ee-connector-ams-pesa
  • ph-ee-connector-bulk
  • ph-ee-connector-crm
  • ph-ee-connector-gsma-mm
  • ph-ee-connector-bulk-mojaloop-java
  • ph-ee-connector-mpesa
  • ph-ee-connector-mtn
  • ph-ee-zeebe-ops

🛠️ How to Build a Project

To build a specific project within the ph-ee-community repository:

Navigate to the project directory:

cd path/to/project-directory

Run the build command:

./gradlew build

Check for successful build output.

✅ How to Run Checkstyle

Ensure your code adheres to the project's coding standards by running Checkstyle:

To check checkstyle for specific service directory: Navigate to the project directory:

cd path/to/project-directory

Checkstyle

Use below command to execute the checkstyle test.

./gradlew checkstyleMain

Spotless

Use below command to execute the spotless apply.

./gradlew spotlessApply

Review the output and resolve any issues.

📝 PR Guidelines

PR title should have the Jira ticket enclosed in [].

Format: [jira_ticket] description

Example: [phee-123] PR title

Add a link to the Jira ticket.

Describe the changes made and why they were made.

Checklist:

  1. Followed the PR title naming convention mentioned above.
  2. Added design-related bullet points or design document links in the description.
  3. Updated corresponding Postman Collection or API documentation.
  4. Created/updated unit or integration tests.
  5. Added required Swagger annotations and updated API documentation.
  6. Followed naming conventions as per the Naming Convention Document.

🔄 How to Run Services Locally (Individually/Multiple)

Running a Service Individually:

  • Navigate to the main class of the service.
  • Run the main class in Java.

Running Multiple Services Locally:

  • For each service, modify the port in the application.yml file to avoid conflicts.
  • Start each service by running the main class of Java in its respective directory.

🚀 How to Raise a Pull Request (PR)

Contributing to ph-ee-community? Here's how you can raise a PR:

Fork the repository and create a new branch:

git checkout -b feature/your-feature-name

Make your changes and commit them:

git commit -m "Add: Description of changes"

Push your branch to your forked repository:

git push origin feature/your-feature-name

Open a PR on the main repository, ensuring you:

Link the relevant Jira ticket in the PR title: [JIRA-ID] Your PR Title.

Add a detailed description of your changes.

🧪 How to Run/See Pipeline Results

After raising a PR, you can check the pipeline results on CircleCI to ensure that your builds are successful and charts are building properly.

Accessing Pipeline Results:

After you submit a PR, go to CircleCI, where the pipeline will automatically run. The status of your build will be displayed, indicating whether it passed or failed.

Adding Integration Tests:

Integration tests should be added in the ph-ee-core repository under the same Jira ticket. Once the tests are added, you can then check the CircleCI results in the ph-ee-core repository to ensure your code is functioning correctly.

By following these steps, you can verify that your changes meet the required standards.

🔍 Additional Information

Documentation: Link to additional documentation.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published