- Nodejs version 14+
-
Install nodejs
sudo apt install nodejs
also see: Using NVM to install latest node version
-
Install Ionic vue cli
npm install -g @ionic/cli
-
Install His-Core dependancies
npm install
There is a known issue that happens sometimes due to conflicting dependencies when installing dependencies with npm using node 16+. The following is the error code that is associated with the issue
npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve . . . // the rest of the error log
As a work around to this run the
npm install
command with the--legacy-peer-deps
flag.npm install --legacy-peer-deps // when installing specific packages npm install <PACKAGE_NAME_HERE> --legacy-peer-deps
- Rename /public/config.json.example to /public/config.json
- Change Url, port or host to match API environment
Run ionic serve
Open the terminal and run the following to update system version:
npm version [<newversion> | major | minor | patch | premajor | preminor | prepatch | prerelease [--preid=<prerelease-id>] | from-git]
eg npm version patch
This will update system version and push the new tag to github
You can manually configure the minimum API version by editing package.json and updating
"min-api-version" : "4.16.1"
Run ionic build
To build for Android, make sure you have the latest version of Android studio installed. i.e. version Flamingo | 2022.2.1 or above. You also need JDK version 17 or above.
- On the terminal, Run
ionic cap sync
- Open Android Studio and click
Build
and thenGenerate Signed Bundle or APK
Run npm i [email protected] --legacy-peer-deps
Could not find method compile() for arguments
- This happens because some of the packages like the barcode scanner are using the
compile
method that is obselete. to fix this in android studio, go tofile > Project Structure > suggestions
. On themodules
tab selectapp
. then for each warnings withObsolete dependency configuration found: compile
clickview usage
then click on[update compile to implementation]
. clickOk
to accept the changes.
After running ionic build
, the output files generated are kept in dist
folder.
You can run the built version using a local web server such as python3 -m http.server
or use ngx. For optimal serving when testing in development, install npm install --global serve
and run serve -s dist
Please install this label script if you want to print labels from the web. This is a background service that is compatible with linux operating systems and CAN WORK WITH ANY WEB BROWSER ON THE DESKTOP.