Mifos X Web App 是 Mifos X 的 Web-UI 组件。目前它使用 Apache Fineract 作为后端,并利用受欢迎的 Angular 框架。 主分支 i
Mifos X Web App 是 Mifos X 的 Web-UI 组件。目前它使用 Apache Fineract 作为后端,并利用受欢迎的 Angular 框架。 主分支 i
Mifos® X Web App is a modern single-page application (SPA) built on top of the Mifos® X platform for financial inclusion. It serves as the default web interface for the Mifos® user community.
Technologies Used:
Before installing the web app, you need to set up the Apache Fineract® backend server:
Choose ONE of these backend options:
Option A: Use existing remote server
Use the demo (MariaDB) — sandbox data is reset every 6 hours; test data and transient state may be cleared.
Use the demo (Keycloak)
Use the demo (2FA)
Use the demo (Oidc)
Use the demo (Postgres)
Configure to your server by updating API URLs in environment files
Option B: Install local Fineract server
Option C: Docker Compose for full stack
Configure environment files to point to your backend:
environments/environment.ts (development)environments/environment.prod.ts (production)Choose ONE of the following methods to install the web app:
npm install -g @angular/[email protected]git clone https://github.com/openMF/web-app.gitgit clone https://github.com/openMF/web-app.git --config core.autocrlf=inputcd web-appnpm installng servehttp://localhost:4200/Pull the Docker image:
docker pull openmf/web-app:1.15.0(Note: You can use :latest for the newest stable release, or :dev for the latest development build. Pinning to a specific version like :1.15.0 is recommended for production.)
Run the container:
docker run -d -p 4200:80 --env-file .env openmf/web-app:1.15.0Access the application at http://localhost:4200/
This sets up both the Mifos® X Web App and Apache Fineract® backend:
git clone https://github.com/openMF/web-app.git
cd web-appgit clone https://github.com/openMF/web-app.git --config core.autocrlf=input
cd web-appdocker compose up -dhttp://localhost:4200/When using the development server with basic authentication:
Important: Do not alter these credentials.
ng serveng generate component component-nameng build --configuration production or npm run build:prodng helpThe web app includes a proxy configuration (proxy.conf.js) that allows you to forward API requests to a remote Fineract backend during local development. This helps avoid CORS issues and enables you to work against production-like environments.
By default, the proxy forwards /fineract-provider requests to the Mifos sandbox environment:
https://demo.mifos.communityhttps://apis.mifos.community (exposed in the demo environment)Sandbox Environment Variables:
FINERACT_API_URLS=https://apis.mifos.community
FINERACT_API_URL=https://apis.mifos.community
FINERACT_API_PROVIDER=/fineract-provider/api
FINERACT_API_ACTUATOR=/fineract-provider
FINERACT_API_VERSION=/v1
FINERACT_PLATFORM_TENANT_IDENTIFIER=default
MIFOS_DEFAULT_LANGUAGE=en-US
MIFOS_SUPPORTED_LANGUAGES=cs-CS,de-DE,en-US,es-MX,fr-FR,it-IT,ko-KO,lt-LT,lv-LV,ne-NE,pt-PT,sw-SW
MIFOS_PRELOAD_CLIENTS=true
MIFOS_DEFAULT_CHAR_DELIMITER=,To proxy to a local Fineract server instead:
Use the provided localhost proxy file (recommended for ng serve):
Start the dev server with the localhost proxy:
ng serve --proxy-config proxy.localhost.conf.jsEnsure your local Fineract instance is running on http://localhost:8443.
Notes:
proxy.localhost.conf.js forwards /fineract-provider to your local backend to avoid CORS during development.HttpsProxyAgent / setupForProxy logic (present in proxy.conf.js) is only necessary when an upstream corporate/HTTP proxy must be used (set via HTTP_PROXY/http_proxy). It is not required for a direct localhost backend.HTTP_PROXY environment variableThe proxy is configured to work with Fineract endpoints as described in this section.
To verify the proxy is working correctly, start the development server (ng serve) and test with curl:
Successful proxy request:
curl -i "http://localhost:4200/fineract-provider/api/v1/runreports/FullClientReport?R_officeId=1&output-type=HTML&R_loanOfficerId=-1"Expected: HTTP 200 response with proxied data from the demo environment. Server console shows:
[Proxy] Proxying: GET /fineract-provider/api/v1/runreports/... -> https://demo.mifos.community/api/v1/runreports/...Simulated proxy error (backend unreachable):
If the backend is unreachable or returns an error, the proxy returns HTTP 502:
# Stop your Fineract backend (if using localhost) or test with an invalid target
# The proxy will log the error and return:Server console (example):
[Proxy] Error while proxying request: GET /fineract-provider/... -> https://demo.mifos.community - ECONNREFUSEDHTTP response:
HTTP/1.1 502 Bad Gateway
Content-Type: text/plain
Proxy error: connect ECONNREFUSEDAll these environment variables can be set when using Docker or Docker Compose:
| Variable | Description | Default Value |
|---|---|---|
| FINERACT_API_URLS | Fineract server list | https://demo.mifos.community,https://localhost:8443 |
| FINERACT_API_URL | Default Fineract server | https://localhost:8443 |
| FINERACT_API_ACTUATOR | Default Fineract Actuator endpoint | /fineract-provider |
| FINERACT_PLATFORM_TENANT_IDENTIFIER | Default tenant identifier (must align with Fineract tenants table) |
default |
| FINERACT_PLATFORM_TENANTS_IDENTIFIER | Tenant identifier list (must align with Fineract tenants table) |
- |
| Variable | Description | Default Value |
|---|---|---|
| MIFOS_DEFAULT_LANGUAGE | Default language | en-US |
| MIFOS_SUPPORTED_LANGUAGES | List of supported languages | cs-CS,de-DE,en-US,es-MX,fr-FR,it-IT,ko-KO,lt-LT,lv-LV,ne-NE,pt-PT,sw-SW |
| Variable | Description | Default Value |
|---|---|---|
| MIFOS_DEFAULT_FORMAT_DATE | Default date format for the application | dd MMMM yyyy |
| MIFOS_DEFAULT_FORMAT_DATETIME | Default datetime format |
暂无开放 Issues,或尚未同步最近议题。