Skip to content

Commit

Permalink
Merge pull request #84 from Asp-irin/develop
Browse files Browse the repository at this point in the history
Update README and modify port configuration in the env files for both profiles.
  • Loading branch information
drtechie authored Jan 28, 2025
2 parents f32104b + f81ebc7 commit 0ac92b3
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 10 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,28 @@ Identity API is a microservice which is used for the creation and management of
## Environment and setup
For setting up the development environment, please refer to the [Developer Guide](https://piramal-swasthya.gitbook.io/amrit/developer-guide/development-environment-setup) .

# Running Instructions

This service consists of two profiles that work together: the main application profile and the 1097_identity profile. Each profile operates on a different port for independent functionality.

## Building and Running

### 1. Main Application (Port: 8094)
```bash
# Build and Run
mvn clean install -DENV_VAR=local
mvn spring-boot:run -DENV_VAR=local
```

### 2. 1097_identity Profile (Port: 8095)
```bash
# Build and Run (in a new terminal)
mvn clean install -P1097_identity -DENV_VAR=local
mvn spring-boot:run -P1097_identity -DENV_VAR=local
```

**Note:** Start the main application before running the 1097_identity profile. Each profile requires the `-DENV_VAR=local` parameter for local development.

## API Guide
Detailed information on API endpoints can be found in the [API Guide](https://piramal-swasthya.gitbook.io/amrit/architecture/api-guide).

Expand Down
8 changes: 4 additions & 4 deletions src/main/environment/1097_example.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

server.port=8095
# DataSource settings: set here your own configurations for the database

spring.datasource.url=<Enter AMRIT DB_1097_IDENTITY URL here>
spring.datasource.username=<Enter your AMRIT DB_1097_IDENTITY username>
spring.datasource.password=<Enter your AMRIT DB_1097_IDENTITY password>
spring.datasource.url=jdbc:mysql://localhost:3306/db_identity
spring.datasource.username=root
spring.datasource.password=1234
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
2 changes: 1 addition & 1 deletion src/main/environment/common_example.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
server.port=8094
# DataSource settings: set here your own configurations for the database
spring.datasource.url=jdbc:mysql://localhost:3306/db_identity
spring.datasource.url=jdbc:mysql://localhost:3306/db_iemr
spring.datasource.username=root
spring.datasource.password=1234
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
5 changes: 0 additions & 5 deletions src/main/environment/common_local.properties

This file was deleted.

0 comments on commit 0ac92b3

Please sign in to comment.