Setup
Please first check if your MySQL 'root' user has the default 'mysql' password:
Code Block |
---|
|
$ mysql -u root -pmysql
mysql> |
For quick development, unless it's already the case, it is recommended that you change your MySQL 'root' user password to 'mysql'. For doing that you need to fire the following command:
Code Block |
---|
|
$ mysqladmin -u root -p 'oldpassword' password newpassword |
Or, if you don't have any password already for Root login as Root then follow the instructions:
Code Block |
---|
|
update mysql.user SET password=PASSWORD('newpassword') WHERE user ='root';
flush privileges; |
Mifos X has support for hosting multiple tenants so we use two database schemas:
- mifosplatform-tenants: which is responsible for persisting the tenant information which is used when deciding what schema each incoming request in the platform should route to. It acts as a registry which contains the details of all the tenant databases, and their connection information, which is used by MifosX to connect to the appropriate tenant.
- mifostenant-default: All tenant specific schemas follow the pattern mifostenant-xxxx, out of the box the default schema is used to represent a demo
Once you have downloaded and build the Mifos X Financial Engine following these instructionsthese:- Build Instructions, you need to create the databse database 'mifosplatofrmmifosplatform-tenants':
Code Block |
---|
|
create database `mifosplatform-tenants`; |
Then open a console and go to [your project root]/mifosxincubator-fineract/mifosngfineract-provider and execute the following command:
Code Block |
---|
|
$ ./gradlew migrateTenantListDB -PdbName=mifosplatform-tenants |
This will populate all needed tables and some default data.
Create schema/database named mifostenant-default
The last thing to do is creating the default tenant so you can test-drive the software:
Code Block |
---|
|
create database `mifostenant-default`; |
When the Mifos X Financial Service Engine starts, all tables will be created or updated so you don't need to take any further action.
npm
If you use Windows or Mac OS download and install npm from https://nodejs.org/download/. If you use a Linux distribution with a package manager see https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager for details on your OS.
bower and grunt
To download the dependencies, and be able to build, first install bower and grunt:
Code Block |
---|
|
npm install -g bower
npm install -g grunt-cli |