# Get Started With Property Tax

## Local Setup

To setup the property service in your local system, clone the git repo - <https://github.com/egovernments/municipal-services>.

## Service Dependencies

* user
* ID-GEN
* pt-calculator
* MDMS
* Location
* localisation

#### Infra Dependency

* [x] &#x20;Postgres DB
* [ ] &#x20;Redis
* [ ] &#x20;Elasticsearch
* [x] &#x20;Kafka
  * [x] &#x20;Consumer
  * [x] &#x20;Producer

### Run Locally

To run the service locally, port forward the following services.

```
function kgpt(){kubectl get pods -n egov --selector=app=$1 --no-headers=true | head -n1 | awk '{print $1}'}

kubectl port-forward -n egov $(kgpt egov-user) 8085:8080
kubectl port-forward -n egov $(kgpt egov-idgen) 8086:8080
kubectl port-forward -n egov $(kgpt egov-mdms-service) 8087:8080
kubectl port-forward -n egov $(kgpt egov-workflow) 8088:8080
kubectl port-forward -n egov $(kgpt egov-localization) 8089:8080
kubectl port-forward -n egov $(kgpt egov-location) 8090:8080
```

Update the properties listed below in `application.properties` before running the project:

```
user.service.hostname = http://127.0.0.1:8085
egov.idgen.hostname = http://127.0.0.1:8086

# can use non port forwarded environment host as well
egov.mdms.host = http://127.0.0.1:8087
egov.workflow.host = http://127.0.0.1:8088

# can use non port forwarded environment host as well
egov.localization.host = http://127.0.0.1:8089
egov.location.host = http://127.0.0.1:8090
```
