-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from egovernments/frontend
Frontend
- Loading branch information
Showing
670 changed files
with
53,597 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
@startuml | ||
title Submit Application | ||
actor user as "User" order 0 #ddff41 | ||
participant APPLICATION as "Application" order 1 #4Ff2AF | ||
participant INDIVIDUAL as "Individual" order 2 #4Ff2AF | ||
participant MDMS as "MDMS" order 3 #4Ff2AF | ||
participant ID_GEN as "ID Generator" order 4 #4Ff2AF | ||
participant WORKFLOW as "Workflow" order 5 #4Ff2AF | ||
participant PERSISTER as "Persister Service" order 6 #4Ff2AF | ||
queue KAFKA as "KAFKA" order 6 #4Ff2AF | ||
database REDIS as "Redis" order 8 #4Ff2AF | ||
database DB as "PostgreSQL" order 8 #4Ff2AF | ||
|
||
user -> APPLICATION: Call _create API | ||
activate user #Fafd30 | ||
note top: Enter Individual Id,\nProgram code, Document ids | ||
activate APPLICATION #00fff0 | ||
APPLICATION -> APPLICATION: Validate request | ||
note right: Vaidate required fields \nto create application | ||
alt if: Request is not valid | ||
user <-[#ff0000]- APPLICATION: [400]: Error response\n with invalid field values | ||
end | ||
|
||
group #fffff1 Validate Program Code is valid: | ||
APPLICATION -> MDMS: Call _search API | ||
note right: Get Program Details | ||
activate MDMS #908390 | ||
APPLICATION <-- MDMS: Program Details | ||
deactivate MDMS | ||
alt if: Program details not found | ||
user <-[#ff0000]- APPLICATION: [400]: Error response\n with invalid reference error | ||
end | ||
end | ||
|
||
group #fffffa Validate Individual is registered: | ||
APPLICATION -> INDIVIDUAL: Call _search API | ||
note right: Get Individual Details | ||
activate INDIVIDUAL #008390 | ||
APPLICATION <-- INDIVIDUAL: Individual Details | ||
deactivate INDIVIDUAL | ||
alt if: Individual details not found | ||
user <-[#ff0000]- APPLICATION: [400]: Error response\n with invalid reference error | ||
end | ||
end | ||
|
||
APPLICATION -> ID_GEN: call _generate: \nSend module name & number of ids required | ||
activate ID_GEN #F1aF0F | ||
APPLICATION <-- ID_GEN: Return ids | ||
deactivate ID_GEN | ||
|
||
APPLICATION -> APPLICATION: Enrich request | ||
note right: Enrich request with \nUUID, audit details | ||
|
||
APPLICATION -> WORKFLOW: Call _transition API\nSend business service, ID and current state | ||
activate WORKFLOW #FFf0aF | ||
APPLICATION <-- WORKFLOW: Return response | ||
deactivate WORKFLOW | ||
|
||
APPLICATION -> REDIS: Save data in redis by key <b>APPLICATIION_{APPLICAITION.ID} | ||
|
||
APPLICATION -> KAFKA: Send request to <b>ubp-application-create</b> topic for persister | ||
APPLICATION -> KAFKA: Send request to <b>ubp-application-verification</b> topic for verification | ||
|
||
user <-[#00a00b]- APPLICATION: Success response | ||
note right: Return enriched Application Details | ||
deactivate APPLICATION | ||
deactivate user | ||
|
||
KAFKA <- PERSISTER: Listen \n<b>ubp-application-create</b> topic | ||
activate PERSISTER #aFa00b | ||
PERSISTER -> DB: Persist application details in tables\neg_ubp_application\neg_ubp_application_documents | ||
deactivate PERSISTER | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
@startuml | ||
title Update Application | ||
actor user as "User" order 0 #ddff41 | ||
participant APPLICATION as "Application" order 1 #4Ff2AF | ||
participant INDIVIDUAL as "Individual" order 2 #4Ff2AF | ||
participant MDMS as "MDMS" order 3 #4Ff2AF | ||
'participant ID_GEN as "ID Generator" order 4 #4Ff2AF | ||
participant WORKFLOW as "Workflow" order 5 #4Ff2AF | ||
participant PERSISTER as "Persister Service" order 6 #4Ff2AF | ||
queue KAFKA as "KAFKA" order 6 #4Ff2AF | ||
database REDIS as "Redis" order 8 #4Ff2AF | ||
database DB as "PostgreSQL" order 8 #4Ff2AF | ||
|
||
user -> APPLICATION: Call _update API | ||
activate user #Fafd30 | ||
note top: Enter Individual Id,\nProgram code, Document ids | ||
activate APPLICATION #00fff0 | ||
APPLICATION -> APPLICATION: Validate request | ||
note right: Vaidate required fields \nto create bank account | ||
alt if: Request is not valid | ||
user <-[#ff0000]- APPLICATION: [400]: Error response\n with invalid field values | ||
end | ||
|
||
group #fffff1 Validate Program Code is valid: | ||
APPLICATION -> MDMS: Call _search API | ||
note right: Get Program Details | ||
activate MDMS #908390 | ||
APPLICATION <-- MDMS: Program Details | ||
deactivate MDMS | ||
alt if: Program details not found | ||
user <-[#ff0000]- APPLICATION: [400]: Error response\n with invalid reference error | ||
end | ||
end | ||
|
||
group #fffffa Validate Individual is registered: | ||
APPLICATION -> INDIVIDUAL: Call _search API | ||
note right: Get Individual Details | ||
activate INDIVIDUAL #008390 | ||
APPLICATION <-- INDIVIDUAL: Individual Details | ||
deactivate INDIVIDUAL | ||
alt if: Individual details not found | ||
user <-[#ff0000]- APPLICATION: [400]: Error response\n with invalid reference error | ||
end | ||
end | ||
|
||
APPLICATION -> APPLICATION: Enrich request | ||
note right: Enrich request with \nUUID, audit details | ||
|
||
APPLICATION -> WORKFLOW: Call _transition API\nSend business service, ID and current state | ||
activate WORKFLOW #FFf0aF | ||
APPLICATION <-- WORKFLOW: Return response | ||
deactivate WORKFLOW | ||
|
||
APPLICATION -> REDIS: Save data in redis by key <b>APPLICATIION_{APPLICAITION.ID} | ||
|
||
APPLICATION -> KAFKA: Send request to <b>ubp-application-update</b> topic for persister | ||
|
||
user <-[#00a00b]- APPLICATION: Success response | ||
note right: Return updated Application Details | ||
deactivate APPLICATION | ||
deactivate user | ||
|
||
KAFKA <- PERSISTER: Listen \n<b>ubp-application-update</b> topic | ||
activate PERSISTER #aFa00b | ||
PERSISTER -> DB: Persist application details in tables\neg_ubp_application\neg_ubp_application_documents | ||
deactivate PERSISTER | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM egovio/flyway:4.1.2 | ||
FROM egovio/flyway:10.7.1 | ||
|
||
COPY ./migration/main /flyway/sql | ||
|
||
COPY migrate.sh /usr/bin/migrate.sh | ||
|
||
RUN chmod +x /usr/bin/migrate.sh | ||
|
||
CMD ["/usr/bin/migrate.sh"] | ||
ENTRYPOINT ["/usr/bin/migrate.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
|
||
flyway -url=$DB_URL -table=$SCHEMA_TABLE -user=$FLYWAY_USER -password=$FLYWAY_PASSWORD -locations=$FLYWAY_LOCATIONS -baselineOnMigrate=true -outOfOrder=true -ignoreMissingMigrations=true migrate | ||
flyway -url=$DB_URL -table=$SCHEMA_TABLE -user=$FLYWAY_USER -password=$FLYWAY_PASSWORD -locations=$FLYWAY_LOCATIONS -baselineOnMigrate=true -outOfOrder=true migrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM egovio/flyway:4.1.2 | ||
FROM egovio/flyway:10.7.1 | ||
|
||
COPY ./migration/main /flyway/sql | ||
|
||
COPY migrate.sh /usr/bin/migrate.sh | ||
|
||
RUN chmod +x /usr/bin/migrate.sh | ||
|
||
CMD ["/usr/bin/migrate.sh"] | ||
ENTRYPOINT ["/usr/bin/migrate.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
|
||
flyway -url=$DB_URL -table=$SCHEMA_TABLE -user=$FLYWAY_USER -password=$FLYWAY_PASSWORD -locations=$FLYWAY_LOCATIONS -baselineOnMigrate=true -outOfOrder=true -ignoreMissingMigrations=true migrate | ||
flyway -url=$DB_URL -table=$SCHEMA_TABLE -user=$FLYWAY_USER -password=$FLYWAY_PASSWORD -locations=$FLYWAY_LOCATIONS -baselineOnMigrate=true -outOfOrder=true migrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
FROM egovio/flyway:4.1.2 | ||
FROM egovio/flyway:10.7.1 | ||
|
||
COPY ./migration/main /flyway/sql | ||
|
||
COPY migrate.sh /usr/bin/migrate.sh | ||
|
||
RUN chmod +x /usr/bin/migrate.sh | ||
|
||
CMD ["/usr/bin/migrate.sh"] | ||
ENTRYPOINT ["/usr/bin/migrate.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/sh | ||
|
||
flyway -url=$DB_URL -table=$SCHEMA_TABLE -user=$FLYWAY_USER -password=$FLYWAY_PASSWORD -locations=$FLYWAY_LOCATIONS -baselineOnMigrate=true -outOfOrder=true -ignoreMissingMigrations=true migrate | ||
flyway -url=$DB_URL -table=$SCHEMA_TABLE -user=$FLYWAY_USER -password=$FLYWAY_PASSWORD -locations=$FLYWAY_LOCATIONS -baselineOnMigrate=true -outOfOrder=true migrate |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
@startuml | ||
title Verify Application | ||
participant APPLICATION as "Application" order 1 #4Ff2AF | ||
participant VERIFICATION as "Verification" order 2 #4Ff2AF | ||
participant INDIVIDUAL as "Individual" order 2 #4Ff2AF | ||
participant MDMS as "MDMS" order 3 #4Ff2AF | ||
participant WORKFLOW as "Workflow" order 5 #4Ff2AF | ||
participant PERSISTER as "Persister Service" order 6 #4Ff2AF | ||
queue KAFKA as "KAFKA" order 6 #4Ff2AF | ||
database DB as "PostgreSQL" order 8 #4Ff2AF | ||
|
||
note top: Enter Individual Id,\nProgram code, Document ids | ||
VERIFICATION <- KAFKA: Listen to <b>ubp-application-verification</b> topic | ||
activate VERIFICATION #00fff0 | ||
VERIFICATION -> VERIFICATION: Validate request | ||
note right: Vaidate required fields \nto create bank account | ||
alt if: Request is not valid | ||
user <-[#ff0000]- VERIFICATION: [400]: Error response\n with invalid field values | ||
end | ||
|
||
group #fffff1 Validate Program Code is valid: | ||
VERIFICATION -> MDMS: Call _search API | ||
note right: Get Program Details | ||
activate MDMS #908390 | ||
VERIFICATION <-- MDMS: Program Details | ||
deactivate MDMS | ||
alt if: Program details not found | ||
user <-[#ff0000]- VERIFICATION: [400]: Error response\n with invalid reference error | ||
end | ||
end | ||
|
||
group #fffffa Validate Individual is registered: | ||
APPLICATION -> INDIVIDUAL: Call _search API | ||
note right: Get Individual Details | ||
activate INDIVIDUAL #008390 | ||
APPLICATION <-- INDIVIDUAL: Individual Details | ||
deactivate INDIVIDUAL | ||
alt if: Individual details not found | ||
user <-[#ff0000]- APPLICATION: [400]: Error response\n with invalid reference error | ||
end | ||
end | ||
|
||
APPLICATION -> ID_GEN: call _generate: \nSend module name & number of ids required | ||
activate ID_GEN #F1aF0F | ||
APPLICATION <-- ID_GEN: Return ids | ||
deactivate ID_GEN | ||
|
||
APPLICATION -> APPLICATION: Enrich request | ||
note right: Enrich request with \nUUID, audit details | ||
|
||
APPLICATION -> WORKFLOW: Call _transition API\nSend business service, ID and current state | ||
activate WORKFLOW #FFf0aF | ||
APPLICATION <-- WORKFLOW: Return response | ||
deactivate WORKFLOW | ||
|
||
APPLICATION -> REDIS: Save data in redis by key <b>APPLICATIION_{APPLICAITION.ID} | ||
|
||
APPLICATION -> KAFKA: Send request to <b>ubp-application-create</b> topic for persister | ||
APPLICATION -> KAFKA: Send request to <b>ubp-application-verification</b> topic for verification | ||
|
||
user <-[#00a00b]- APPLICATION: Success response | ||
note right: Return enriched Application Details | ||
deactivate APPLICATION | ||
deactivate user | ||
|
||
KAFKA <- PERSISTER: Listen \n<b>ubp-application-create</b> topic | ||
activate PERSISTER #aFa00b | ||
PERSISTER -> DB: Persist application details in tables\neg_ubp_application\neg_ubp_application_documents | ||
deactivate PERSISTER | ||
|
||
@enduml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
.env | ||
.eslintcache | ||
|
||
# yarn $ | ||
.yarn | ||
yarn.lock | ||
.yarnrc.yml | ||
|
||
# dependencies | ||
node_modules | ||
.yarn | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/web/build | ||
dist | ||
# misc | ||
.DS_Store | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* @jagankumar-egov @sathishp-eGov |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
library 'ci-libs' | ||
|
||
buildPipeline(configFile: './build/build-config.yml') |
Oops, something went wrong.