MifosX Community App
Building from source
Ensure you have
npminstalled - goto http://nodejs.org/download/ to download installer for your OS.
rubyinstalled - goto https://www.ruby-lang.org/en/documentation/installation/ to download latest version of ruby.
Note: On Ubuntu Linux you can use 'sudo apt-get install npm nodejs-legacy' (nodejs-legacy is required to avoid the ""/usr/bin/env: node: No such file or directory" problem).
Tip: If you are using Ubuntu/Linux, then doing
npm config set prefix ~ prevents you from having to run npm as root.
Clone this repository to your local filesystem (default branch is 'develop')
To download the dependencies, and be able to build, first install bower & grunt
npm install -g bower npm install -g grunt-cli
Next pull the runtime and build time dependencies by running bower, npm and gem bundler install commands on the project root folder
To preview the app, run the following command on the project root folder
or open the 'index.html' file in FIREFOX browser
Note: If you see a warning similar to the one shown below on running
grunt serve, try increasing the number of open files limit as per the suggestions at http://stackoverflow.com/questions/34588/how-do-i-change-the-number-of-open-files-limit-in-linux/
Waiting...Warning: EMFILE, too many open files
Default username/password: mifos/password. This application will hit the demo server by default.
You are done.
Connecting to a MifosX Platform using OAuth 2 authentication:
Edit the value of property "security" in configurations.js to "oauth"
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 (mifosng-provider REST API) deployed on demo.openmf.org.
The app connects to the platform running on the same host/port when deployed on a server.
If you want to connect to the API running elsewhere, then append the baseApiUrl and tenantIdentifier as query parameters,
You can also add more dependencies on bower.json. You can search for them in http://sindresorhus.com/bower-components/ or even:
bower search <package>
Running grunt tasks
Grunt tasks are used to automate repetitive tasks like minification, compilation, unit testing, linting, production builds, etc
Following are the tasks integrated.
Validate JS and HTML files
Build the code for production deployment.
Use this for development. Start a static server and open the project in the default browser. The application will hit the demo server.
Compile sass to css
Running the tests
Just open test/SpecRunner.html in the browser.
Getting Started doc
Please read the contribution guidelines