GithubHelp home page GithubHelp logo

cryptozenci / pointsdk Goto Github PK

View Code? Open in Web Editor NEW

This project forked from pointnetwork/pointsdk

0.0 0.0 0.0 2.21 MB

Extension for Point Browser to provide SDK

JavaScript 5.76% TypeScript 92.16% HTML 0.72% SCSS 1.36%

pointsdk's Introduction

Point Browser Extension

Getting Started

npm install

Scripts

  • npm run start - run webpack in watch mode
  • npm run build - builds the production-ready unpacked extension
  • npm test -u - runs Jest + updates test snapshots
  • npm run lint - runs EsLint
  • npm run prettify - runs Prettier

Mozilla Firefox

In Mozilla Firefox, open up the about:debugging#/runtime/this-firefox page. Select Load Temporary Add-on... button and choose the manfiest.json from the dist directory in this repository - the extension should now be pinned to the task bar.

Google Chrome

In Google Chrome, open up chrome://extensions. Make sure the Developer Mode checkbox in the upper-right corner is turned on. Click Load unpacked and select the dist directory in this repository - the extension should now be pinned to the task bar.

Brave

In Brave, open up brave://extensions. Make sure the Developer Mode checkbox in the upper-right corner is turned on. Click Load unpacked and select the dist directory in this repository - the extension should now be pinned to the task bar.

Using web-ext

The web-ext command line tool can facilitate the development experience. This helps to streamline development and to automatically load the extention when Firefox starts as well as when the extention is updated.

First step is to instlal the web-ext utility globally like so:

npm install --global [email protected]

Now you can start up Firefox using a specific Profile that you have already created (e.g. website_owner which has the proxy already configured for pointing to the website_owner node instance). Make sure to specify the source directory where the extentions built manifiest.json file is located. You can also optionally, provide a url of a website you want to open by default (e.g. https://store.z/).

web-ext run --firefox-profile=website_owner --keep-profile-changes --source-dir dist/prod --url https://point

You should also be able to use the alias point-browser-owner or point-browser-visitor (see Point Engine repo .bash_alias file for details).

Please check the Firefox docs more details on the web-ext command line tool

NOTE: It appears the page will load BEFORE the extention so simply refresh the page on the first load!

Debugging

If you want to debug the Point Browser Extention you should:

  1. Run the build in watch mode using npm run start
  2. Use web-ext to load the extention from the dist folder. Best way to do this is to use the point-browser-dev alias (see Point Engine repo .bash_alias file for details).
  3. Open the extention debugger in the Point Browser: about:devtools-toolbox?id=%7Bc8388105-6543-4833-90c9-beb8c6b19d61%7D&type=extension
  4. You can view all extention metrices in this devtool window including any console log statements you add to the code.

Now, if you make cahnges to the extention code, it will automatically build and reload the extention in the browser :)

pointsdk's People

Contributors

tankakatan avatar koochr avatar brianunlam avatar jensendarren avatar amherag avatar lordandares avatar germanviescas avatar jatinbumbra avatar diogosmendonca avatar tunji17 avatar sergevar avatar emozilla avatar michelnapo avatar nicobevilacqua avatar

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.