-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'campaign' into HLM-5988/HLM-6008
- Loading branch information
Showing
18 changed files
with
842 additions
and
1,082 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
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 @@ | ||
# Local Setup | ||
|
||
To set up the ProjectFactory service in your local system, clone the [Digit Frontend repository](https://github.com/egovernments/DIGIT-Frontend). | ||
|
||
## Dependencies | ||
|
||
### Infra Dependency | ||
|
||
- [x] Postgres DB | ||
- [ ] Redis | ||
- [ ] Elasticsearch | ||
- [x] Kafka | ||
- [x] Consumer | ||
- [x] Producer | ||
|
||
## Running Locally | ||
|
||
### Local setup | ||
1. To setup the ProjectFactory service, clone the [Digit Frontend repository](https://github.com/egovernments/DIGIT-Frontend). | ||
2. Install Node.js version 20 using nvm (Node Version Manager). | ||
3. Update the configs in [utilities/project-factory/src/server/config/index.ts](utilities/project-factory/src/server/config/index.ts), change HOST to "http://localhost:8080/" and KAFKA_BROKER_HOST to "localhost:9092". | ||
4. Also update DB config values as per your local system config. | ||
5. Update all dependency service host either on any unified-env or port-forward. | ||
6. Open the terminal and run the following command | ||
|
||
`cd utilities/project-factory/` | ||
|
||
`yarn install` (run this command only once when you clone the repo) | ||
|
||
`yarn dev` | ||
|
||
> Note: After running the above command, if a Kafka error occurs, ensure that Kafka and Zookeeper are running in the background. If a connection error with another microservice occurs, ensure that the URL mentioned in the external mapping of the data config is correct, or you can port-forward that particular service. |
Oops, something went wrong.