GithubHelp home page GithubHelp logo

safewallet's Introduction

Safe Mail Tutorial Application

The tutorial app show cases how to use the low level API from safe_app_nodejs library to build a simple email application.

Demonstrates the usage of:

  • Private MutableData
  • Public MutableData
  • Immutable data
  • App's own container
  • _publicNames and services containers

Please refer to the Application Data Model section below for additional details.

Install

First, clone the repository:

$ cd your-project-name

And then install the dependencies:

$ npm install

If you are working on a development environment, you can run the command below instead, in order to get the safe_client libraries that use the MockVault file rather than connecting to the SAFE Network:

$ NODE_ENV=dev npm install

Run

$ npm start

This starts the app in development mode with hot-reloading.

Faking Authentication

If you don't have authenticator set up and want to run the test with randomly generated testing credentials, run it as:

$ NODE_ENV=development SAFE_FAKE_AUTH=1 npm start

Note: requires a node version >= 4 and an npm version >= 2.

DevTools

Toggle Chrome DevTools

  • OS X: Cmd Alt I or F12
  • Linux: Ctrl Shift I or F12
  • Windows: Ctrl Shift I or F12

See electron-debug for more information.

Package

$ npm run package

To package apps for all platforms:

$ npm run package-all

To package apps with options:

$ npm run package -- --[option]

Application Data Model

The following diagram depicts how the emails are stored in the SAFE network, as well as how the email app stores email accounts information.

Email App Data Model

safewallet's People

Contributors

diegomr86 avatar

Stargazers

luandro avatar

Watchers

 avatar James Cloos avatar

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.