Setting up Frontend - community-app
Let's get started!
Ensure you have
npminstalled - goto http://nodejs.org/download/ to download the installer for your OS.rubyinstalled - goto https://www.ruby-lang.org/en/documentation/installation/ to download the latest version of ruby.
Note: On Ubuntu Linux you can use sudo apt-get install npm nodejs-legacy, which avoids the /usr/bin/env: node: No such file or directory problem.
Note that on Linux distributions you'll need to install the Ruby Development package (e.g. sudo dnf install ruby-devel on Fedora), and not just ruby, otherwise bundle install below will fail when it gets to installing ffi which uses native extensions.
Clone this repository to your local filesystem (default branch is 'develop'):
git clone https://github.com/openMF/community-app.gitTo download the dependencies, and be able to build, first install bower & grunt:
npm install -g bower npm install -g grunt-cli
If this fails with npm WARN checkPermissions Missing write access to /usr/local/lib and npm ERR! code EACCES because you are not running npm with sudo as root (which you rightfully really shouldn't!) then use npm config set prefix ~ once before doing npm install. Note that in that case bower and grunt will be installed into ./bin/bower instead of /usr/local/bin, and so you need to prefix it in the usages below.
Next pull the runtime and build time dependencies by running
bower,npm, andgemcommands on the project root folder:bower installnpm installgem install bundlerbundle installIf you used
npm config set prefix ~, then you have to use./bin/bower installinstead ofbower install.To preview the app, run the following command on the project root folder:
grunt serveIf you used
npm config set prefix ~, then you have to use./bin/grunt serveinstead ofgrunt serve.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 filesYou can use these credentials to log in:
Username: mifos Password: password
You are done.
Last updated
Was this helpful?