Bahmni Connect front end is completely based off AngularJS. It doesn't have any server component to it. Instead, it calls the REST API of OpenMRS/Bahmni. |
AngularJS requires the following tool tree installed on your development machine.
Xcode (only for mac)
Ruby
Node v10.11.0
Project specific node modules
Use following instructions (the exact mechanism for doing step 1 would depend on the OS you are using, we have mentioned for mac).
Install the following modules required globally (This is a one time task)
gem install compass |
You would have to run the following commands for Bahmni Connect front end project. Run these commands from the ui folder under Bahmni Connect front end project
# Install dependencies (Installed node dependencies into node_modules. UI dependencies are installed in node_modules/@bower_components and create a soft link to app/components). yarn install |
Run this command from Bahmni connect front end project folder for creating a symlink into your vagrant /var/www:
# links dist folder ./scripts/vagrant-link.sh |
Chrome App (PWA):
PWA only works for secure connection. That means, you need https connection to use PWA. Also, Google Chrome is the only recomended browser to use PWA. |
To bundle PWA, run the following commands from ui folder under Bahmni Connect front end project
# To genearte css files yarn compass # To minify and bundle PWA related source code yarn chrome # To generate service workers files yarn sw |
Android App:
To bundle Android app, run the following commands from ui folder under Bahmni Connect front end project
# To genearte css files yarn compass # To minify and bundle android app related source code yarn android |
Run the following command from bahmni-offline/android to install the android app on the device (The device should be connected to the system).
ionic run android |