Last active
April 11, 2018 19:26
-
-
Save romansemko/03450d12966e77ba34a53c6480c2afae to your computer and use it in GitHub Desktop.
Setting up environment for Romeo - Ledger nano integration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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