- If you like, please fork the GitHub and contribute.
- The App is built by Ionic and Cordova. The test back-end is built by Node.js and MongoDB.
- Node.js --> v8.4.0
- npm --> v4.2.0
- MongoDB --> v3.4.9
- For more information please see
Heart_healh/package.json
,Heart_healh/server/package.json
and other config file.
- Config environment:
3.1$ npm install
at Heart_healh folder
3.2$ npm install
at Heart_healh/server folder
3.3 Start service of MongoDB.
3.4 Start data base and insert test document: At Heart_healh/server folder,$ mongoimport --jsonArray --db heart --collection medicine --file sampleData1.json
,$ mongoimport --jsonArray --db heart --collection information --file sampleData.json
3.5 Start the server js at Heart_healh/server folder:$ node server.js
3.6 Change the file Heart_healh/src/providers/auth-service/auth-service.ts to connect your local host: change
API_URL: string = "http://10.19.202.128:8080/api/";
to your own ip of server. exp ```10.19.202.128``` to ```123.13.203.13```
3.7 Start ionic build at Heart_healh folder: see GitHub and Cordova
4. The issue you might have:
- Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
- cordova run android executes fine. But Android doesn't start the app
- Could not install ‘node_modules/cordova-plugin-app-event’
- 'mx.ferreyra.callnumber' is not in the npm registry.
Enter your password and user name to login:
If you don't have one, please Register.
There are three tabs in this app:
- Medicine
- Profile
- Setting
The Medkit page includes the most frequently used
funcntion. This make the user can conviently attach the function
In the head, it's a quick access set.
Click it to open and close.
It has three tabs.
- Top one is quick add medicine
- The right one is health monitor
- The left one is dynamic token
Press the Medicine button to access the Medicine List.
More information at 5. Medicine List functoin.
Press the Doctor Advice button to access the Health Advice Articles.
We will frequently push u some health article that suit for you.
Press the User Manual button to access the user manual.
- In the top, it's user's Doctor Profile card. Press it to make a call to the Doctor.
- In the bottom, it's health info list. User can update their health information to server
and monitor it at Health Monitor;
It includes a Doctor botton to scan the users token to get that users information.