diff --git a/basic/srv/portal/img/MifosX.png b/basic/srv/portal/img/MifosX.png
new file mode 100644
index 0000000..29ceb11
Binary files /dev/null and b/basic/srv/portal/img/MifosX.png differ
diff --git a/basic/srv/portal/img/MifosX_Mobile.png b/basic/srv/portal/img/MifosX_Mobile.png
new file mode 100644
index 0000000..5c06ab9
Binary files /dev/null and b/basic/srv/portal/img/MifosX_Mobile.png differ
diff --git a/basic/srv/portal/index.html b/basic/srv/portal/index.html
index 8e43bf1..b63ee8e 100644
--- a/basic/srv/portal/index.html
+++ b/basic/srv/portal/index.html
@@ -201,13 +201,29 @@
Integrace zdravotnických a komunikačních služeb.
+
diff --git a/mifosx.sh b/mifosx.sh
new file mode 100755
index 0000000..011db2b
--- /dev/null
+++ b/mifosx.sh
@@ -0,0 +1,55 @@
+#!/bin/bash
+
+SOURCE_DIR=$(realpath $(dirname "${0}"))/mifosx
+
+# Download Mifos X
+mkdir -p /srv/mifosx/fineract-provider
+wget https://sourceforge.net/projects/mifos/files/latest/download -O /tmp/mifosx.zip
+unzip /tmp/mifosx.zip -d /tmp
+unzip /tmp/fineractplatform-17.07.01.RELEASE/fineract-provider.war -d /srv/mifosx/fineract-provider
+mv /tmp/fineractplatform-17.07.01.RELEASE/apps/community-app /srv/mifosx/community-app
+rm -f /tmp/mifosx.zip
+
+# Download Java library dependencies
+wget http://central.maven.org/maven2/org/drizzle/jdbc/drizzle-jdbc/1.3/drizzle-jdbc-1.3.jar -O /var/lib/tomcat8/lib/drizzle-jdbc-1.3.jar
+
+# Create databases
+export MIFOSX_PWD=$(head -c 18 /dev/urandom | base64)
+envsubst <${SOURCE_DIR}/tmp/mifosx-createdb.sql >/tmp/mifosx-createdb.sql
+mysql /tmp/mifosx-schemapwd.sql
+mysql mifosplatform-tenants >/srv/mifosx/fineract-provider/WEB-INF/classes/sql/migrations/core_db/V3__mifosx-permissions-and-authorisation-utf8.sql
+
+# Configure Mifos X
+envsubst <${SOURCE_DIR}/srv/mifosx/fineract-provider/META-INF/context.xml >/srv/mifosx/fineract-provider/META-INF/context.xml
+cp ${SOURCE_DIR}/srv/mifosx/fineract-provider/WEB-INF/classes/application.properties /srv/mifosx/fineract-provider/WEB-INF/classes/application.properties
+sed -i 's/requires-channel="https" //g' /srv/mifosx/fineract-provider/WEB-INF/classes/META-INF/spring/securityContext.xml
+chown -R tomcat8:tomcat8 /srv/mifosx/fineract-provider
+ln -s /srv/mifosx/fineract-provider /var/lib/tomcat8/webapps/fineract-provider
+
+# Create nginx site definition
+cp ${SOURCE_DIR}/etc/nginx/apps-available/mifosx /etc/nginx/apps-available/mifosx
+ln -s /etc/nginx/apps-available/mifosx /etc/nginx/apps-enabled/mifosx
+
+# Restart services
+systemctl restart tomcat8
+systemctl restart nginx
+
+# Cleanup
+rm -rf /tmp/fineractplatform-17.07.01.RELEASE
+
+# Add portal application definition
+portal-app-manager mifosx "/mifosx/" "${MIFOSX_ADMIN_USER}" "${MIFOSX_ADMIN_PWD}"
+portal-app-manager mifosx-mobile
diff --git a/mifosx/etc/nginx/apps-available/mifosx b/mifosx/etc/nginx/apps-available/mifosx
new file mode 100644
index 0000000..77cafec
--- /dev/null
+++ b/mifosx/etc/nginx/apps-available/mifosx
@@ -0,0 +1,10 @@
+location /mifosx {
+ alias /srv/mifosx/community-app;
+}
+
+location /fineract-provider {
+ proxy_set_header X-Forwarded-For $remote_addr;
+ proxy_set_header X-Forwarded-Host $host:$server_port;
+ proxy_set_header X-Forwarded-Proto https;
+ proxy_pass http://127.0.0.1:9080;
+}
diff --git a/mifosx/srv/mifosx/fineract-provider/META-INF/context.xml b/mifosx/srv/mifosx/fineract-provider/META-INF/context.xml
new file mode 100644
index 0000000..9c61907
--- /dev/null
+++ b/mifosx/srv/mifosx/fineract-provider/META-INF/context.xml
@@ -0,0 +1,35 @@
+
+
+
+
+
+
+
diff --git a/mifosx/srv/mifosx/fineract-provider/WEB-INF/classes/application.properties b/mifosx/srv/mifosx/fineract-provider/WEB-INF/classes/application.properties
new file mode 100644
index 0000000..48d4b4d
--- /dev/null
+++ b/mifosx/srv/mifosx/fineract-provider/WEB-INF/classes/application.properties
@@ -0,0 +1,21 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License. You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied. See the License for the
+# specific language governing permissions and limitations
+# under the License.
+#
+
+spring.profiles.default=basicauth
+server.port=9080
diff --git a/mifosx/tmp/mifosx-adminpwd.sql b/mifosx/tmp/mifosx-adminpwd.sql
new file mode 100644
index 0000000..3a6cc04
--- /dev/null
+++ b/mifosx/tmp/mifosx-adminpwd.sql
@@ -0,0 +1,2 @@
+
+UPDATE m_appuser SET username = "${MIFOSX_ADMIN_USER}", password = "${MIFOSX_ADMIN_HASH}", email = "${MIFOSX_ADMIN_EMAIL}" WHERE id = 1;
diff --git a/mifosx/tmp/mifosx-createdb.sql b/mifosx/tmp/mifosx-createdb.sql
new file mode 100644
index 0000000..faa5477
--- /dev/null
+++ b/mifosx/tmp/mifosx-createdb.sql
@@ -0,0 +1,5 @@
+CREATE USER 'mifosx'@'%' IDENTIFIED BY '${MIFOSX_PWD}';
+CREATE DATABASE `mifosplatform-tenants` CHARACTER SET utf8 COLLATE utf8_general_ci;
+CREATE DATABASE `mifostenant-default` CHARACTER SET utf8 COLLATE utf8_general_ci;
+GRANT ALL PRIVILEGES ON `mifosplatform-tenants`.* TO 'mifosx'@'%';
+GRANT ALL PRIVILEGES ON `mifostenant-default`.* TO 'mifosx'@'%';
diff --git a/mifosx/tmp/mifosx-schemapwd.sql b/mifosx/tmp/mifosx-schemapwd.sql
new file mode 100644
index 0000000..c841a9b
--- /dev/null
+++ b/mifosx/tmp/mifosx-schemapwd.sql
@@ -0,0 +1 @@
+UPDATE tenants SET schema_username = "mifosx", schema_password = "${MIFOSX_PWD}" WHERE identifier = "default";