-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
62 additions
and
4 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
# Obscuro Gateway JS | ||
|
||
A JavaScript library for the gateway, providing streamlined access and functionalities for interacting with the Obscuro network. | ||
|
||
## Table of Contents | ||
|
||
- [Features](#features) | ||
- [Installation](#installation) | ||
- [Usage](#usage) | ||
- [Build](#build) | ||
- [Contribute](#contribute) | ||
- [License](#license) | ||
|
||
## Features | ||
|
||
- Seamless connection to Obscuro Network. | ||
- Easy-to-use methods for joining and authenticating. | ||
- External consumption support through CDN or NPM. | ||
|
||
## Installation | ||
|
||
To install `obscuro-gateway-js`, use npm: | ||
|
||
\`\`\`bash | ||
npm install obscuro-gateway-js | ||
\`\`\` | ||
|
||
## Usage | ||
|
||
\`\`\`javascript | ||
|
||
const Gateway = require('obscuro-gateway-js'); | ||
|
||
const gateway = new Gateway(httpURL, wsURL, provider); | ||
await gateway.join(); | ||
await gateway.registerAccount(account); | ||
|
||
\`\`\` | ||
|
||
## Build | ||
|
||
To build for development: | ||
|
||
\`\`\`bash | ||
npm run dev | ||
\`\`\` | ||
|
||
For production: | ||
|
||
\`\`\`bash | ||
npm run build | ||
\`\`\` | ||
|
||
The production build will be available for external consumption on GitHub Pages at `https://go-obscuro.github.io/obscuronet/gateway.bundle.js`. | ||
|
||
## Contribute | ||
|
||
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change. |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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