Skip to content

WorldBrain/storex-hub-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Storex Hub boilerplate

This is a minimal boilerplate for both Storex Hub external applications, and plugins. It does basic things like:

  • Setting up a connection
  • Making sure you stay identified even on reconnect
  • Storing the access token in a JSON file (if running as an external app)
  • Setting up a StorageModule and making it usable with Storex Hub

Getting started

The basics:

  • git clone [email protected]:WorldBrain/storex-hub-boilerplate.git
  • cd storex-hub-boilerplate && rm -rf .git
  • yarn
  • Change APP_NAME in ts/constants.ts to something like org.your-org.your-plugin (reverse domain scheme)
  • Change identifierin manifest.json to to same as APP_NAME

To run as an external app, when for example making a CLI tool (also useble if you're making a front-end):

  • yarn start

To pack as a plugin and test it, when for example making an integration to an external platform (IPFS, Twitter, etc.):

  • yarn build:dev or yarn build:prod
  • cd <storex-hub-dir>
  • yarn cli plugin:install <this-repo>/build

Documentation

In the Storex documentation you can find out more about:

  • How to write a plugin
  • How to store data in Storex Hub
  • How to connect other external apps, like Memex
  • How to expose custom functionality through remote calls

About

Boilerplate for Storex Hub plugins and external apps

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published