Coder Social home page Coder Social logo

stellarguard-js-sdk's Introduction

StellarGuard

StellarGuard - protect your Stellar Lumens with multisig and two factor auth.

Getting Started

Prerequisites

In order to develop locally, you will need to install the following on your system:

NodeJS - Requires Node 10.13.0 or above, used for building the UI code and running the server

Yarn - Used for package management

Postgres - Requires Postgres 9.6 or above

Redis - Requires Redis 4.0 or above

After forking and cloning the repo:

  1. Start the Postgres server -- a make command make docker-start will automatically start up the Postgres and Redis server in local container
  2. Start the Redis server.
  3. ./setup.sh - This will create your .env.dev.local configuration file, install project dependencies, and create the stellarguard database

Running the develoment server

yarn dev - This builds the UI and starts a nodejs server on port 3000. Open your browser to http://localhost:3000 after running this

Technologies Used

Server

Front End

Data stores

Project Structure

src/server - Code for the NodeJS server

src/ui - Code for the React-based UI

src/shared - Code that is shared in both the UI and Server (such as validations)

migrations - This is where database migrations are stored. Run migrations using db-migrate up and create migrations with db-migrate create <migration name>). See https://db-migrate.readthedocs.io/ for usage instructions

scripts - Standalone scripts such as deployment scripts and configuration

License

MIT

stellarguard-js-sdk's People

Contributors

pselden avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

stellarguard-js-sdk's Issues

Cannot read property 'some' of undefined

Trying command StellarGuardSdk.hasStellarGuard(publicKey) on a funded test account GC2T4GYQGRE6ZZ2KZ3HYZIYLIJHXCGAZDU2TFDSNNHP5RH6YQ4R6PIHR but getting that error in response.

(node:6) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'some' of undefined
        at StellarGuard.hasStellarGuard (/data/_verquire/@stellarguard/sdk/1.3.0/node_modules/@stellarguard/sdk/src/index.js:21:26)
        at _default (webpack://webtask/./routes/user/get.js?:42:31)
        at <anonymous>

Happy to provide any additional information as needed.

There is no StellarGuard user associated with the transaction source account

Using https://test.stellarguard.me/api with source account GC2T4GYQGRE6ZZ2KZ3HYZIYLIJHXCGAZDU2TFDSNNHP5RH6YQ4R6PIHR which is definitely a StellarGuard account. Note I added this user via the API so there may not be a user in your database with that account id. Curious what the point of an API would be though if each user would need to be signed up on the StellarGuard website itself.

{ 
  code: 201,
  field: 'error',
  message: 'There is no StellarGuard user associated with the transaction source account.',
  statusCode: 400
}

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.