mirror of
https://github.com/openMF/community-app.git
synced 2026-02-06 09:37:29 +00:00
update base API URL (#3251)
update base api URL to new server https://demo.mifos.io
This commit is contained in:
parent
22612924b5
commit
4c2a7a56a0
@ -128,7 +128,7 @@ Our central development branch is `develop` , which should be clean and ready fo
|
|||||||
|
|
||||||
- If the PR is for solving some Issue related to UI, post 2 pictures, first picture containing the earlier UI and the second picture containing the updated UI.
|
- If the PR is for solving some Issue related to UI, post 2 pictures, first picture containing the earlier UI and the second picture containing the updated UI.
|
||||||
|
|
||||||
- Include the URLs to the views that are effected by the PR. For example, if the PR has some improvements in the clients page, have the URL information as: https://demo.openmf.org/newbeta/#/clients
|
- Include the URLs to the views that are effected by the PR. For example, if the PR has some improvements in the clients page, have the URL information as: https://demo.mifos.io/newbeta/#/clients
|
||||||
|
|
||||||
5. Please ensure that the code you write is well-tested.
|
5. Please ensure that the code you write is well-tested.
|
||||||
|
|
||||||
|
|||||||
@ -52,7 +52,7 @@ module.exports = function(grunt) {
|
|||||||
port: 9002,
|
port: 9002,
|
||||||
hostname: 'localhost',
|
hostname: 'localhost',
|
||||||
livereload: 35729,
|
livereload: 35729,
|
||||||
open:'http://<%= connect.options.hostname %>:<%= connect.options.port %>?baseApiUrl=https://demo.openmf.org'
|
open:'http://<%= connect.options.hostname %>:<%= connect.options.port %>?baseApiUrl=https://demo.mifos.io'
|
||||||
},
|
},
|
||||||
livereload: {
|
livereload: {
|
||||||
options: {
|
options: {
|
||||||
|
|||||||
@ -5,7 +5,7 @@ This is the default web application built on top of the MifosX platform for the
|
|||||||
|
|
||||||
## Online Demo
|
## Online Demo
|
||||||
|
|
||||||
<a target="_blank" href="https://demo.openmf.org">Access the online demo version here</a>
|
<a target="_blank" href="https://demo.mifos.io">Access the online demo version here</a>
|
||||||
|
|
||||||
## Building from source
|
## Building from source
|
||||||
|
|
||||||
@ -84,7 +84,7 @@ Edit the value of property "security" in <a href="https://github.com/openMF/comm
|
|||||||
|
|
||||||
### Connecting to a MifosX Platform running on a different host:
|
### Connecting to a MifosX Platform running on a different host:
|
||||||
|
|
||||||
By default, when the app is running from the local filesystem, it will connect to the platform (fineract-provider REST API) deployed on demo.openmf.org.
|
By default, when the app is running from the local filesystem, it will connect to the platform (fineract-provider REST API) deployed on demo.mifos.io.
|
||||||
|
|
||||||
The app connects to the platform running on the same host/port when deployed on a server.
|
The app connects to the platform running on the same host/port when deployed on a server.
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ If you want to connect to the API running elsewhere, then append the baseApiUrl
|
|||||||
|
|
||||||
e.g. http://localhost:9002/?baseApiUrl=https://localhost:8443&tenantIdentifier=default
|
e.g. http://localhost:9002/?baseApiUrl=https://localhost:8443&tenantIdentifier=default
|
||||||
|
|
||||||
e.g. http://localhost:9002/?baseApiUrl=https://demo.openmf.org&tenantIdentifier=default
|
e.g. http://localhost:9002/?baseApiUrl=https://demo.mifos.io&tenantIdentifier=default
|
||||||
|
|
||||||
## Adding dependencies
|
## Adding dependencies
|
||||||
|
|
||||||
|
|||||||
@ -2,11 +2,11 @@
|
|||||||
(function (mifosX) {
|
(function (mifosX) {
|
||||||
var defineHeaders = function ($httpProvider, $translateProvider, ResourceFactoryProvider, HttpServiceProvider, $idleProvider, $keepaliveProvider, IDLE_DURATION, WARN_DURATION, KEEPALIVE_INTERVAL) {
|
var defineHeaders = function ($httpProvider, $translateProvider, ResourceFactoryProvider, HttpServiceProvider, $idleProvider, $keepaliveProvider, IDLE_DURATION, WARN_DURATION, KEEPALIVE_INTERVAL) {
|
||||||
var mainLink = getLocation(window.location.href);
|
var mainLink = getLocation(window.location.href);
|
||||||
var baseApiUrl = "https://demo.openmf.org";
|
var baseApiUrl = "https://demo.mifos.io";
|
||||||
var host = "";
|
var host = "";
|
||||||
var portNumber = "";
|
var portNumber = "";
|
||||||
//accessing from openmf server
|
//accessing from openmf server
|
||||||
if (mainLink.hostname.indexOf('openmf.org') >= 0) {
|
if (mainLink.hostname.indexOf('mifos.io') >= 0) {
|
||||||
var hostname = window.location.hostname;
|
var hostname = window.location.hostname;
|
||||||
console.log('hostname---' + hostname);
|
console.log('hostname---' + hostname);
|
||||||
domains = hostname.split('.');
|
domains = hostname.split('.');
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user