Middleware designed to improve interactions with the Nokia Health API, and thus Nokia Health devices.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Before installing, download and install Node.js.
Clone this repository:
git clone https://github.com/martinchapman/nokia-health.git
Change into the directory:
(Optional) From within the project folder, create a node virtual environment (within a python virtual environment), and activate it:
virtualenv env . env/bin/activate pip install nodeenv nodeenv nenv . nenv/bin/activate
lib/config.js to include your
CALLBACK_BASE, a publicly accessible end-point to receive callbacks from Nokia's API.
For notification callbacks,
php/nokia.php should also be publicly accessible via your
From within the project folder, run with:
The app runs by default on port 5001.
Receive authorisation to query a user's Nokia device data by having them visit the URL generated at
and authorise your application.
Then, retrieve an initial read of a user's body measures by visiting:
Running the tests
Run both unit and lint tests using
Run in production using NODE_ENV environment variable, e.g.:
NODE_ENV=production npm start
Deployed systems should switch to a production database format (e.g. Postgres).
- Express - The web framework used.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
Produced as part of the CONSULT project.
This project is licensed under the MIT License - see the LICENSE.md file for details.
- Nokia's original health API https://developer.health.nokia.com/api.