DIGIT Docs
v0.2
  • DIGIT Knowledge Base
  • Local Governance
v0.2
  • Introducing HCM Console
  • Release Notes
    • v0.2: Release Notes
      • v0.2 Technical Release Summary
      • Service Build Updates
      • Master Data Management Service (MDMS) & Configuration Updates
    • v0.1: Release Notes
      • v0.1 Technical Release Summary
      • Service Build Updates
      • Master Data Management Service (MDMS) & Configuration Updates
      • Gate 2 Release Checklist
  • PRODUCT SPECIFICATION
    • User Manual
    • Product Requirement Document (PRD)
    • Functional Specifications
  • TECHNOLOGY
    • Architecture
      • High Level Design
      • Low Level Design
        • Project Factory (Campaign Manager)
      • Services
        • Project Factory
          • Campaign Manage APIs
          • Data Manage APIs
            • Target Upload
          • Boundary Campaign Setup
            • Boundary Generation
        • HCM Console Web
          • User Interface Design
          • Create New Campaign
            • Campaign Details
            • Delivery Details
            • Boundary Details
            • Resource Upload Details
            • Setup and Implementation of Campaign
            • Summary Screen
          • Change Campaign Dates
          • My Campaign
            • Action Column Integration
          • Boundary Bulk Upload
          • Campaign Timeline
  • SETUP
    • Installation
    • Configuration
    • Quality Assurance Testing
      • Automation - Run HCM Console Script
        • User
        • Target
        • Facility
      • Performance Testing
  • GENERAL
    • Product Roadmap
Powered by GitBook

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.

On this page
  • Overview
  • Pre-requisites
  • APIs Overview
  • Create Campaign
  • Configs and helm chart details :

Was this helpful?

Export as PDF
  1. TECHNOLOGY
  2. Architecture
  3. Services

Project Factory

Overview

Project-factory assists users in generating the seed data essential for the campaign creation process in DIGIT HCM and in establishing relationships between all resources. The Project Factory Service manages project-type campaigns by handling the creation, updating, searching, and campaign setup processes. This documentation details the available APIs, their endpoints, request and response structures, and internal processing flows.

Pre-requisites

  • Knowledge of JavaScript (preferably ES6).

  • Knowledge of Git or any version control system.

  • Knowledge of RESTful web services.

  • Knowledge of the Kafka and Postgres.

  • Knowledge of eGov-mdms service, eGov-persister, eGov-idgen, eGov-indexer, and eGov-user will be helpful.

Base URL

project-factory/v1/

APIs Overview

Create Campaign

TO DO add other information

DB DIAGRAM

Swagger :

Configs and helm chart details :

  • Configure the role CAMPAIGN_MANAGER for project-factory in the ‘ACCESSCONTROL-ROLES’ module.

  • Configure the action id(s) with the corresponding role code ‘ACCESSCONTROL-ROLEACTIONS’ module.

  • For Project Factory Service Role-Action mappings are as follows in the Dev environment.

API EndPoints

Roles

/project-factory/v1/project-type/create

  • CAMPAIGN_MANAGER

/project-factory/v1/project-type/update

  • CAMPAIGN_MANAGER

/project-factory/v1/project-type/search

  • CAMPAIGN_MANAGER

/project-factory/v1/data/_create

  • CAMPAIGN_MANAGER

/project-factory/v1/data/_search

  • CAMPAIGN_MANAGER

/project-factory/v1/data/_generate

  • CAMPAIGN_MANAGER

/project-factory/v1/data/_download

  • CAMPAIGN_MANAGER

Additional APIs being used are:

API EndPoints

Roles

/boundary-service/boundary-hierarchy-definition/_search

  • CAMPAIGN_MANAGER

boundary-service/boundary-relationships/_search

  • CAMPAIGN_MANAGER

/product/variant/v1/_search

  • CAMPAIGN_MANAGER

/product/v1/_search

  • CAMPAIGN_MANAGER

/product/v1/_create

  • CAMPAIGN_MANAGER

/product/variant/v1/_create

  • CAMPAIGN_MANAGER

  • Configure all the MDMS data for project factory service as done in the QA environment.

Data to configure :

  • Attribute Config

  • Boundary Schema

  • Delivery Config

  • Facility Schema

  • Gender Config

  • Mail Config

  • Operator Config

  • Product Type

  • User Schema

Refer to the following:

IdGen Config:

Make sure the id format is configured in the ‘IdFormat.json’ file of the ‘common-masters’ module.

Below is what is currently configured in the QA environment.

{
    "format": "CMP-[cy:yyyy-MM-dd]-[SEQ_EG_CMP_ID]",
    "idname": "campaign.number"
}

Environment variables Below are the variables that should be configured well before deployment of the project factory service build image.

  • Add these ‘db-host’,’db-name’,’db-url’,’domain’ and all the digit core platform services configurations (Idgen ,persister, filestore, etc.) in respective environments yaml file.

  • Add project factory service related environment variables’ value like the way it's done in the QA environment yaml file. (Search for project-factory)

  • Heath-hrms, health-project, health-individual and facility should have specified heap and memory limits as mentioned below

heap: "-Xmx256m -Xms256m"
memory_limits: 512Mi

PreviousServicesNextCampaign Manage APIs

Was this helpful?

Persister config : Helm chart details :

Make sure to add the DB(Postgres and flyway) username & password in the respective environment secret yaml file the way it's done.

Make sure to add the digit core services related secrets are configured in the respective environment secret file the way it's done.

Click for localisation details.

Click to get the Postman Collection

https://github.com/egovernments/configs/blob/UNIFIED-UAT/health/egov-persister/project-factory-persister.yml
https://github.com/egovernments/DIGIT-DevOps/blob/unified-env/deploy-as-code/helm/charts/health-services/project-factory/values.yaml
https://github.com/egovernments/egov-mdms-data/tree/UNIFIED-QA/data/mz/health/hcm-admin-console
https://github.com/egovernments/DIGIT-DevOps/blob/unified-env/deploy-as-code/helm/environments/unified-qa.yaml
https://github.com/egovernments/DIGIT-DevOps/tree/unified-env/deploy-as-code/helm/charts/health-services/project-factory
here
here
here
here
Swagger Editor
Logo