Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Setting up environment for Romeo - Ledger nano integration.
# Make sure you have node 8+, and yarn installed.
# ============= Romeo LIB ===============
# Checkout romeo.lib and switch to the feature/ledger-support branch:
git clone git@github.com:SemkoDev/romeo.lib.git && cd romeo.lib && git checkout feature/ledger-support
# Install dependencies
yarn
# Create a yarn link
yarn link
# Start watch script to compile to dist/ if src/ changes:
yarn run watch
# ============= Romeo HTML ===============
# In another window:
# Checkout romeo.html and switch to the feature/ledger-support branch:
git clone git@github.com:SemkoDev/romeo.html.git && cd romeo.html && git checkout feature/ledger-support
# Install dependencies
yarn
# Link romeo.html
yarn link romeo.lib
# Start development server (yes, "run run"):
yarn run run
# ====== IMPLEMENTING LedgerGuard =======
# ============= Romeo LIB ===============
# Source: https://github.com/SemkoDev/romeo.lib/tree/feature/ledger-support/src/guard
# There is already a ledger-guard.js with an empty LedgerGuard class based on BaseGuard.
# You can use simple-guard.js as example. It implements a simple username/password guard.
# Once implemented, nothing else has to be done in the romeo.lib, theoretically.
# ============= Romeo HTML ===============
# The login work has to be done in src/js/views/login.js, line 302:
# https://github.com/SemkoDev/romeo.html/blob/f9794be0946550555fc62cb8c095c93c7a6ba72d/src/js/views/login.js#L302
# The important parts are marked with 'TODO'.
# Nothing else has to be done, theoretically.
For any questions or issues don't hesitate to ask me. :)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment