Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 714 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 714 Bytes

Oura Flask app

Introductory guide to create an app with Flask and MySQL to request data from the Oura Cloud API. See documentation for the complementairy, more technical, walkthrough on deploying the app using Docker, Rails, GitLab, and DigitalOcean.

See: https://mindatasleep.github.io/oura/

Running the app locally

Create oura_app_credentials.json in the root directory

{
    "CLIENT_ID": "YOUR_OURA_APP_CLIENT_ID",
    "CLIENT_SECRET": "YOUR_OURA_APP_CLIENT_SECRET"
}

Execute app from a virtual environment

python3 -m venv .venv
source .venv/bin/activate
pip3 install -r requirements.txt

python3 -m app.app

Host docs locally

cd docs/
bundle exec jekyll serve