Mysql Instructions :
Install Mariadb :
Once the key is imported and the repository added you can install MariaDB with:
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8 sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://sgp1.mirrors.digitalocean.com/mariadb/repo/10.2/ubuntu xenial main'
sudo apt update sudo apt install mariadb-server
Refer this link for more Reference if you want:
Link - https://github.com/jpvelsamy/incubator-fineract
Tomcat Instructions :
Copied tomcat server source folder from jana.
or
Just download apache tomcat.zip file from official site
Create RSA key and store it in a file .
How to do?
sudo keytool -genkey -keyalg RSA -alias tomcat -keystore /usr/share/tomcat.keystore (use your own location)
set password to: xyz123
Changed the server.xml file.
Location - /home/sid(Your username)/Softwares/tomcat/conf/server.xml
What to Change?
url="jdbc:mysql:thin://localhost:3306/mifosplatform-tenants"
username="your mysql username"
password="your mysql password"
keystoreFile="/home/sid(Your username)Softwares/tomcat/tomcat.keystore
(Use your own location)" .
Copy the fineract-provider.war file from fineract folder to tomcat folder
Location :
From - /home/sid/workspace/mifos-myfork/incubator-fineract
/fineract-provider/build/libs/fineract-provider.war
To - /home/sid/Softwares/tomcat/webapps/fineract-provider.war
Start the tomcat server
Location - /home/sid(your username)/Softwares/tomcat/bin
Command
To start the server - ./startup.sh
To check the log - tail -100f ../logs/catalina.out
Mifos Instructions :
Clone the Community-app from jpvelsamy's github account.
Refer this link to complete the remaining setup:
Link - https://github.com/jpvelsamy/community-app/tree/apple
Checkout the repository from develop to apple branch.
Command - git checkout apple
Change the Initialtasks.js and gruntfile.js in community-app .
Location:
Initialtasks.js - /home/sid(your username)/workspace/mifos-myfork
/community-app/app/scripts/initialtasks.js
What to change?
baseApiUrl = "https://localhost:8443/fineract-provider/api/v1? tenantIdentifier=default"
Gruntfile.js - /home/sid/workspace/mifos-myfork/community-app/Gruntfile.js
What to change?
Hostname = '0.0.0.0'
Run these commands in the following location
Commands - sudo apt-get install nodejs-legacy
npm config set prefix ~
npm install -g bower
npm install -g grunt-cli
~/bin/bower install --allow-root
npm install
Then start the grunt server
Commands - ~/bin/grunt serve or /home/username/bin/grunt serve
After i finished the setup i started the server and i wasn't able to login because of the fineract certification problem. To resolve this i had to do the following things
Go to this adress - https://localhost:8443/fineract-provider and it will show certification error in your browser, so u have to add this address as an exception in your browser.
Then run the index.html page
Location - /home/sid/workspace/mifos-myfork/community- app/app/index.html
(or)
Http://localhost
Run ./gradlew rat. Report will be generated under /build/reports/rat/rat-report.txt
If there is an error while building rat file or war file then run the follwing command.
Command - ./gradlew tasks licenseFormatMain licenseFormatTest licenseFormatIntegrationTest
Instructions to build war file
Run ./gradlew clean war or ./gradlew build to build deployable war file which will be
created at build/libs directory.
Instructions to execute Integration tests
Login to mysql DB using mysql -u root -pmysql
Create the mifosplatform-tenants database using `CREATE DATABASE mifosplatform- tenants`.
Create the default tenant database using `CREATE DATABASE mifostenant-default`.
Download gradle-wrapper.jar version 2.10 and place it in the fineract- provider/gradle/wrapper folder.
Run the following commands:
./gradlew migrateTenantListDB -PdbName=mifosplatform-tenants
UPDATE tenant_server_connections SET schema_server='dbmc-mysql-node', schema_password='password' WHERE schema_name='mifostenant-default';
./gradlew migrateTenantDB -PdbName=mifostenant-default
Run ./gradlew clean integrationTest (may not run but that's not an issue)
Login into mysql using mysql -u root -ppassword
Create two databases
Query - CREATE DATABASE `mifosplatform-tenants`
CREATE DATABASE `mifostenant-default` 6
Then update the tenant_server_connections
Query - UPDATE tenant_server_connections SET schema_server='dbmc-mysql- node', schema_username='root',schema_password='password' WHERE schema_name='mifostenant-default';
Fineract Instructions :
Clone the incubator-fineract repository from your bitbucket account.
https://sid98@bitbucket.org/lasalleadmin/incubator-fineract.git
Checkout the repository from develop to apple branch.
Command - git checkout apple
Change the build.gradle file.
Location - home/(Your username)/workspace/incubator-fineract/fineract- provider/build.gradle
What to change ?
project.ext.mysqlUser='your mysql username'
project.ext.mysqlPassword='your mysql password'
For Host - flyway.url= "jdbc:mysql:thin://localhost:3306/$tenantDbName"
For Docker - flyway.url= "jdbc:mysql:thin://dbmc-mysql-node:3306/$tenantDbName"
You have to change all the values in the build.gradle regarding the jdbc URL
Instructions to run Apache RAT (Release Audit Tool)