Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

axiom-api

Package Overview
Dependencies
Maintainers
1
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

axiom-api

API for interacting with the Axiom.org cryptocurrency platform

  • 0.0.42
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by100%
Maintainers
1
Weekly downloads
 
Created
Source

About This Code

This directory contains the TypeScript codebase. There are several different build targets produced by the same codebase. Some targets build for a browser environment; some build for a node environment.

src/browser/ contains code that is only intended to run in the browser.

src/node/ contains code that is only intended to run in node.js.

src/iso/ contains code that is intended to run in either node.js or the browser.

One key exception to this rule is that unit tests are always running in node.js, albeit from a Jest environment that is mimicking the browser.

TypeScript will store its build files in /build/, and Parcel will store its build files in /dist/. You can ignore these directories unless you are mucking around with the build system.

Build Targets

The local chrome extension, used for testing against a blockchain running on your machine, is built into /ext-local/ with the command npm run ext-local.

The CLI is run as a Node application via npm run cli.

The hosting server is run as a Node application via npm run hserver.

There is an app used for testing things, built into /app/ with the command npm run app. You don't really need this; it's just handy to use as a testbed sometimes.

Testing Things Locally

  1. Make sure you have the local blockchain running:
    • ./start-local.sh
    • If this isn't working, see the README one directory up.
  2. Build the extension locally
    • npm install
    • npm run ext-local
  3. Load the extension in Chrome
    • Navigate to chrome://extensions
    • Toggle "Developer Mode" on
    • Click "Load Unpacked" and select the axiom/ts/ext-local directory
  4. Run a hosting server
    • npm run hserver
  5. Deploy the "hello" website. Use the passphrase "mint"
    • npm run cli create-bucket
    • `npm run cli deploy ./samplesite hello
  6. Test that it works
    • Navigate to "hello.axiom" in your browser
    • You should see a website with a picture of a frog

FAQs

Package last updated on 04 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc