tmpUI

Demos w/ the Merlin Sound ID Project.

Demos w/ the Merlin Sound ID Project

Hack upon these demos:

# clone:
git clone https://github.com/Jesssullivan/tmpUI
cd tmpUI

Install Node dependencies:

# node depends:
npm install  

Web:

Set up a local Python environment for Flask if that’s your thing:

# set up a local venv:
python3 -m venv tmpui_venv
source tmpui_venv/bin/activate

Install depends for Flask demos:

# Flask depends:
pip3 install -r requirements.txt

# Flask & gunicorn will automatically go fetch...
# Werkzeug, itsdangerous, MarkupSafe, Jinja2, click
# ...as well

# see https://www.tensorflow.org/lite/guide/python
# for tflite_runtime.interpreter only wheels

Configure Flask accordingly in config.py:

# config.py

# `True` serves demos @ 127.0.0.1:5000 via node proxy (set `False` for production @ 0.0.0.0:80)
devel = True

# rebuild header + demo + footer html renders before serving anything (set `False` for production):
prerender = True

pack up the web demos & start serving:

# see more script stuff in package.json & in `./scripts/`
npm run-script develop-web

Prepare a ./production directory –> deploy web demos like this:

# make sure all bundles and renders are bundled and rendered:
# build to a production directory:
npm run-script production-web
# (you'll want reconfigure config.py accordingly too)

React Native:

# link ios depends:
cd ios && pod install && cd ..

Build & deploy to Xcode Simulator:

# link ios depends:
npm run-script ios-native

Swift Native:


Scripts:

### Removing stuff:

# ...demo bundles:
npm run-script clean-web-bundles
# ...or `find demos/ -name "*_bundle.js" -print -delete`

# ...demo renders:
npm run-script clean-web-renders
# ...or `find demos/ -name "*_render.html" -print -delete`

# all web files and directories:
npm run-script clean-web-all
# ...or `chmod u+x scripts/clean.sh && ./scripts/clean.sh`

# ...fruit debris:
find '.' -name ".DS_Store" -print -delete

### github environments:
## obtain token @ https://github.com/settings/tokens

# install jq:
sudo apt install jq
# ...or `brew install jq`

# update ./scripts/remove_env.sh:
sudo chmod +x scripts/remove_env.sh && ./scripts/remove_env.sh

### Generate local ssl certs for testing w/ node http-server:
# linux:
npm run-script sslgen-web-demos
# ...or `sudo chmod +x scripts/sslgen.sh && ./scripts/sslgen.sh`
# osx is a bit more finicky

# See ./package.json & ./scripts/ for additional scripts

Macaulay Annotation features:


Field Annotation features:


Additional bits: