GithubHelp home page GithubHelp logo

tylerpennexx / keytools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from joohansson/keytools

0.0 0.0 0.0 79.5 MB

Secure webtools for Nano currency with offline support

Home Page: https://tools.nanos.cc

License: MIT License

HTML 0.43% CSS 2.35% JavaScript 97.08% Shell 0.14%

keytools's Introduction

KeyTools - High performance Nano web tools written with reactJS

Developer instructions

Prepare for build (Ubuntu or Windows)

Install nodejs and npm

git clone https://github.com/Joohansson/keytools
cd keytools
npm install

Create an empty file in the src folder called rpc.js. It usually contains credentials for connecting to the RPC server and that is not shared publicly. However, you will not be able to use the Network Inspector tool or read RPC data in off-chain signing without these credentials or setting up your own RPC server. The file is needed to build the app. Syntax of the file:

export const RPC_SERVER = 'https://myApiServer/'
export const RPC_LIMIT = 'Message when blocked by the API.'
export const RPC_CREDS = 'username:password'

Test application

npm start

Open http://localhost:3000 to view it in the browser.

Build application

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

Your app is ready to be deployed!

Get started adding a new tool

  1. Copy any tool.js file and rename it to MyTool.js
  2. Alter the row at the top: <class MyTool extends Component {>
  3. Alter the row at the bottom:
  4. Change tools/index.js: Add <import MyTool from './MyTool.js'>
  5. Change tools/index.js: Add the new class to <export {ConvertTool,...>
  6. Change mainPage.js: Add the new class to <import { Start, Terms, ConvertTool,...>
  7. Change mainPage.js: Add the new entry to <const tools = ['HOME', 'CONVERT',...>
  8. Change mainPage.js: Add a tool dropdown title to <this.tools = ['0: HOME', '1: Unit Converter',...>
  9. Change mainPage.js: Add tool at <{(active === 'CONVERT') && <ConvertTool {...this} /> }...>
  10. Change mainPage.js: Add a section to control URL params at <switch (tool) {...>
  11. For hotkeys, search for this and add appropriate key: shift+alt+0
  12. The new tool should now be available from the main dropdown selector. Happy coding!

Some Nice Libraries Used

Inspiration Hall of Fame

Contribution

Find this useful? Send me a Nano donation at nano_1gur37mt5cawjg5844bmpg8upo4hbgnbbuwcerdobqoeny4ewoqshowfakfo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.