Note: The Blip Notes website was retired on 1/28/2016 in favor of the Blip Notes mobile apps for iOS and Android. For more information about the Blip Notes mobile apps please visit http://tidepool.org/products/blip-notes/.
Blip's companion mobile web app, used for messaging.
Requirements:
Clone this repo then install dependencies:
$ npm install
Start the development server (in "mock mode") with:
$ source config/mock.sh
$ npm start
Open your web browser and navigate to http://localhost:3001/
.
The config.app.js
file will have some magic constants that look like __FOO__
statements replaced by the value of the corresponding environment variable when the build or development server is run. If you need to add new environment variables, you should also update webpack.config.js
with definitions for them, as well as .jshintrc.
The app is built as a static site in the dist/
directory.
We use Shio to deploy, so we separate the build in two.
Shio's build.sh
script will take care of building the app itself with:
$ npm run build-app
Shio's start.sh
script then builds the config from environment variables as a separate file with:
$ source config/env.sh
$ npm run build-config
After that, the app is ready to be served using the static web included in this repo:
$ npm run server
You can also build everything at once locally by simply running:
$ source config/mock.sh
$ npm run build
$ npm run server