Skip to content

Diabetes Management App With Behavioral Science Sauce for Type 1 Diabetics

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.MD
Notifications You must be signed in to change notification settings

alexandre-normand/glukit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

a2a2cd2 · Feb 5, 2023
Sep 4, 2018
Aug 18, 2013
Feb 8, 2019
Jun 27, 2019
Sep 2, 2018
Feb 21, 2015
Feb 21, 2015
Sep 2, 2018
Dec 16, 2016
Feb 5, 2023
Sep 4, 2018
Jan 7, 2015
Jun 24, 2018
Jun 24, 2018
Feb 5, 2023
Feb 5, 2023
Nov 7, 2014
Sep 2, 2018
Jun 24, 2018
May 21, 2014
Sep 4, 2018

Repository files navigation

Glukit

Requirements:

  1. Install Google App Engine GO SDK: https://developers.google.com/appengine/downloads#Google_App_Engine_SDK_for_Go
  2. Read the Getting Started case in case of need: https://developers.google.com/appengine/docs/go/gettingstarted/devenvironment
  3. Get ruby (only for SCSS support), compass, bower and claymate (for gumby and front-end)
  4. safekeeper for generating source with client ids/secrets: go get github.com/alexandre-normand/safekeeper
  5. Go in ./view and run claymate install.
  6. Setup environment variables with the following and run go generate github.com/alexandre-normand/glukit/app/secrets:
```
LOCAL_CLIENT_ID="google-client-id-for-localhost"
LOCAL_CLIENT_SECRET="google-client-secret-for-localhost"
PROD_CLIENT_ID=""
PROD_CLIENT_SECRET=""
TEST_STRIPE_KEY="stripe-test-key"
TEST_STRIPE_PUBLISHABLE_KEY="stripe-test-publishable-key"
PROD_STRIPE_KEY=""
PROD_STRIPE_PUBLISHABLE_KEY=""
```
  1. Setup client ids and secrets using the datastore administration UI (as an osin.client entity):
* Generate a client secret using something like `openssl rand -base64 24`
* Generate a client id using something like `echo "`openssl rand -hex 14`.mygluk.it"`
* Note the `RedirectUri` expected by the authenticating application (i.e. `x-glukloader://oauth/callback`)
* Create a new `osin.client` entity using those values. The `key.identifier` should match the generated client id.

Misc

To make SCSS changes, use compass build or compass watch.

Running it:

From , execute goapp serve and hit http://localhost:8080.

Deploy:

gcloud app deploy