Giter Club home page Giter Club logo

gapp's Introduction

guld-app

Guld app, filling in the gaps with our gapp.

Tests

There are two types of tests, attended and unattended. The latter is normal, automatable unit testing. The prior involves very long tasks and password entry, especially for key generation.

npm run test-attended
# or
npm run test

Build

This library uses es6, and requires babel to be run before node, or mocha can import it. The test scripts in package.json do this automatically.

npm run build

Usage

const gapp = require('gapp')
var perspective = new gapp.perspective.Perspective()
Initialize

Initialization is a complex process, behind the scenes.

  1. initialize new git repo at ~/blocktree/
  2. make ~/blocktree/life/${name}/gap.json
  3. import or generate PGP key
  4. export PGP public key to ~/blocktree/keys/pgp/${name}.asc
  5. log user into github once, to generate re-usable OAUTH token
  6. Encrypt token and store in ~/blocktree/config.json
  7. add ~/blocktree/.gitignore with config.json*
  8. Commit all of the above.
  9. Push to your github

From code, initialization is quite easy, at least in theory.

const gapp = require('gapp')
gapp.perspective.Perspective.init(
  github_username,
  github_password,
  email,
  fingerprint
)

Config file

An encrypted config file is managed by the program, kept in ~/blocktree/config.json. By default, this file is ignored by git. This file can be used for keeping secrets needed at runtime, such as authentication tokens for github and other services.

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.