The data hub is responsible for pulling wearable data into the database at regular intervals.
- Remove source/Utils stuff
- Tutorials
- More professional JWT management
- Improve logging
- Journal
- Write documentation
- Testing
Essentially, this node.js application consists of two key components:
- User registration: User gives the application consent to access her/his data
- Data manager: Polls data sources/APIs at regular intervals in order to store the data
- Integrity manager: Ensures that user data is available for all intervals
This project is mainly based on
- ExpressJS as web server/for request handling
- Knex.js as database migrator/seeder
- Objection.js as database wrapper
- Axios for API requests
- Install Node.js and NPM on your machine
- Clone the repository to your local machine
- Run
npm install
in the console - Setup your local database (TODO)
- Generate a random JWT token secret, for example using
node
, thenrequire('crypto').randomBytes(64).toString('hex')
- Setup the database structure using the
npx knex migrate:latest
command - Run the application using
npm start