Skip to content

Commit 0ac92b3

Browse files
authored
Merge pull request #84 from Asp-irin/develop
Update README and modify port configuration in the env files for both profiles.
2 parents f32104b + f81ebc7 commit 0ac92b3

File tree

4 files changed

+27
-10
lines changed

4 files changed

+27
-10
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,28 @@ Identity API is a microservice which is used for the creation and management of
1212
## Environment and setup
1313
For setting up the development environment, please refer to the [Developer Guide](https://piramal-swasthya.gitbook.io/amrit/developer-guide/development-environment-setup) .
1414

15+
# Running Instructions
16+
17+
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.
18+
19+
## Building and Running
20+
21+
### 1. Main Application (Port: 8094)
22+
```bash
23+
# Build and Run
24+
mvn clean install -DENV_VAR=local
25+
mvn spring-boot:run -DENV_VAR=local
26+
```
27+
28+
### 2. 1097_identity Profile (Port: 8095)
29+
```bash
30+
# Build and Run (in a new terminal)
31+
mvn clean install -P1097_identity -DENV_VAR=local
32+
mvn spring-boot:run -P1097_identity -DENV_VAR=local
33+
```
34+
35+
**Note:** Start the main application before running the 1097_identity profile. Each profile requires the `-DENV_VAR=local` parameter for local development.
36+
1537
## API Guide
1638
Detailed information on API endpoints can be found in the [API Guide](https://piramal-swasthya.gitbook.io/amrit/architecture/api-guide).
1739

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
1+
server.port=8095
22
# DataSource settings: set here your own configurations for the database
33

4-
spring.datasource.url=<Enter AMRIT DB_1097_IDENTITY URL here>
5-
spring.datasource.username=<Enter your AMRIT DB_1097_IDENTITY username>
6-
spring.datasource.password=<Enter your AMRIT DB_1097_IDENTITY password>
4+
spring.datasource.url=jdbc:mysql://localhost:3306/db_identity
5+
spring.datasource.username=root
6+
spring.datasource.password=1234
77
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
server.port=8094
22
# DataSource settings: set here your own configurations for the database
3-
spring.datasource.url=jdbc:mysql://localhost:3306/db_identity
3+
spring.datasource.url=jdbc:mysql://localhost:3306/db_iemr
44
spring.datasource.username=root
55
spring.datasource.password=1234
66
spring.datasource.driver-class-name=com.mysql.jdbc.Driver

src/main/environment/common_local.properties

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)