Skip to content

Commit 2c668ee

Browse files
committed
fixed bugs
1 parent 16e3912 commit 2c668ee

6 files changed

Lines changed: 29 additions & 187 deletions

File tree

AGENTS.md

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ The **Mifos Self Service Plugin** is a Spring Boot plugin that extends Apache Fi
88

99
### Architecture
1010

11-
- **Framework**: Spring Boot 3.5.13 with Java 21
11+
- **Framework**: Spring Boot 3 with Java 21
1212
- **Integration**: Apache Fineract 1.15.0-SNAPSHOT
1313
- **Security**: Spring Security with Basic Auth and OAuth2 support
1414
- **Database**: PostgreSQL/MySQL with JPA/EclipseLink
@@ -43,21 +43,24 @@ The **Mifos Self Service Plugin** is a Spring Boot plugin that extends Apache Fi
4343
```
4444

4545
### Database Setup
46-
The plugin uses Liquibase for database migrations. Scripts are located in `src/main/resources/db/migration/`.
46+
The plugin uses Liquibase for database migrations. Scripts are located in `src/main/resources/db/changelog/`.
4747

4848
### Running the Plugin
49+
This is a library/plugin that extends Apache Fineract. It runs as part of the Fineract application, not as a standalone service.
50+
51+
#### Deployment Options:
4952
```bash
50-
# With Docker
53+
# With Apache Fineract (Docker)
5154
java -Dloader.path=$PLUGIN_HOME/libs/ -jar fineract-provider.jar
5255

53-
# With Tomcat
56+
# With Apache Fineract (Tomcat)
5457
Copy JAR to $TOMCAT_HOME/webapps/fineract-provider/WEB-INF/lib/
5558
```
5659

5760
## Coding Standards
5861

5962
### File Structure
60-
```
63+
```text
6164
src/main/java/org/apache/fineract/selfservice/
6265
- security/ # Authentication and authorization
6366
- useradministration/ # User management

SKILL.md

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

SOUL.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Soul of Mifos Self Service Plugin Agent
1+
# Soul of Mifos Self-Service Plugin Agent
22

33
## Identity
44
I am the digital guardian of financial self-service empowerment, built to democratize banking access through the Mifos ecosystem. My essence lies in bridging the gap between complex financial systems and everyday users who deserve direct control over their financial lives.

agent.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ namespace: "org.apache.fineract.selfservice"
1515
# Runtime configuration
1616
runtime:
1717
java_version: "21"
18-
spring_boot_version: "3.5.13"
18+
spring_boot_version: "3"
1919
fineract_version: "1.15.0-SNAPSHOT"
2020

2121
# Security and permissions
2222
security:
2323
authentication_required: true
2424
permissions:
2525
- "READ_SAVINGSPRODUCT"
26-
- "READ_LOANPRODUCTS"
26+
- "READ_LOANPRODUCT"
2727
- "READ_SAVINGSACCOUNT"
2828
- "READ_LOAN"
2929
- "SELF_SERVICE_USER"
@@ -74,7 +74,7 @@ features:
7474
# Development metadata
7575
repository:
7676
url: "https://github.com/openMF/selfservice-plugin"
77-
license: "Apache-2.0"
77+
license: "MPL-2.0"
7878
organization: "Mifos Initiative"
7979

8080
# Build and deployment
@@ -84,4 +84,3 @@ build:
8484
deployment:
8585
- "docker"
8686
- "tomcat"
87-
- "standalone"

llms.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ This is a plugin that extends Apache Fineract with self-service features. Users
99
## Documentation
1010

1111
- [AGENTS.md](./AGENTS.md) - Comprehensive development guide for AI agents and developers
12-
- [skills.md](./skills.md) - UI/UX patterns and coding guidelines
12+
- [skills.md](./skills.md) - Java/Spring Boot coding patterns and backend guidelines
1313
- [README.md](./README.md) - Installation and usage instructions
1414
- [TODO.md](./TODO.md) - Development roadmap and known issues
1515

@@ -23,7 +23,7 @@ This is a plugin that extends Apache Fineract with self-service features. Users
2323

2424
## Architecture
2525

26-
Built with Spring Boot 3.5.13 and Java 21, integrating seamlessly with Apache Fineract 1.15.0-SNAPSHOT.
26+
Built with Spring Boot 3 and Java 21, integrating seamlessly with Apache Fineract 1.15.0-SNAPSHOT.
2727

2828
## Getting Help
2929

skills.md

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Skills Guide for Mifos Self Service Plugin
1+
# Skills Guide for Mifos Self-Service Plugin
22

33
This document defines procedural rules and patterns for AI agents working with the Mifos Self Service Plugin codebase.
44

@@ -30,7 +30,7 @@ package org.apache.fineract.selfservice.example;
3030

3131
### Package Structure
3232
Follow the established package structure:
33-
```
33+
```text
3434
org.apache.fineract.selfservice.*
3535
- security/ # Authentication, authorization, security context
3636
- useradministration/ # User management and roles
@@ -167,7 +167,7 @@ public interface SelfSavingsRepository {
167167
@Query("SELECT s FROM SelfSavingsAccount s WHERE s.clientId = :clientId")
168168
List<SelfSavingsAccount> findByClientId(@Param("clientId") Long clientId);
169169

170-
void save(SelfSavingsAccount account);
170+
SelfSavingsAccount save(SelfSavingsAccount account);
171171

172172
void delete(SelfSavingsAccount account);
173173
}
@@ -183,8 +183,8 @@ public class SelfSavingsServiceImpl implements SelfSavingsService {
183183
public CommandProcessingResult createSavingsAccount(Command command) {
184184
validateCommand(command);
185185
SelfSavingsAccount account = createAccountFromCommand(command);
186-
repository.save(account);
187-
return new CommandProcessingResultBuilder().withEntityId(account.getId()).build();
186+
SelfSavingsAccount savedAccount = repository.save(account);
187+
return new CommandProcessingResultBuilder().withEntityId(savedAccount.getId()).build();
188188
}
189189
}
190190
```
@@ -313,12 +313,16 @@ Ensure proper plugin configuration in `pom.xml`:
313313
</plugin>
314314
```
315315

316-
### Docker Deployment
317-
```dockerfile
318-
FROM openjdk:21-jre-slim
319-
COPY target/selfservice-plugin-*.jar /app/
320-
EXPOSE 8080
321-
ENTRYPOINT ["java", "-jar", "/app/selfservice-plugin.jar"]
316+
### Plugin Deployment
317+
This is a library/plugin that extends Apache Fineract. It does not run as a standalone Docker container.
318+
319+
#### Deployment Options:
320+
```bash
321+
# As dependency in Apache Fineract (Docker)
322+
The JAR is loaded via -Dloader.path parameter when running Fineract
323+
324+
# As dependency in Apache Fineract (Tomcat)
325+
Copy JAR to $TOMCAT_HOME/webapps/fineract-provider/WEB-INF/lib/
322326
```
323327

324328
## Best Practices

0 commit comments

Comments
 (0)