Git Product home page Git Product logo

skyflow-adventure-demo-experience's Introduction

Skyflow Adventure Demo Experience

Overview

This application demonstrates Skyflow's support for secure data collection, data sharing, and data governance.

The application is interactive and uses a Skyflow vault while teaching the user about Skyflow vaults.

Requirements

  • node - v10.17
  • npm > 6.x.x

You can find the documentation and steps to install node and npm here.

Configuration

Vault setup

Before you can run the application, you need to create a vault and import the data.

Create the vault

  1. Login to Skyflow Studio.
  2. Click Create Vault and select Upload Vault Schema.
  3. Drag the data/vault_schema.json file into the modal and then click Upload.

Set environment variables

The import data script and demo application need environment variables for your VAULT_ID, VAULT_URL, and SERVICE_ACCOUNT_KEY.

  1. From the vault details modal, copy the Vault ID.
  2. In your terminal, execute export VAULT_ID=$VAULT_ID replacing $VAULT_ID with the vault ID you copied.
  3. From the vault details modal, copy the Vault URL.
  4. In your terminal, execute export VAULT_URL=$VAULT_URL replacing $VAULT_URL with the vault URL you copied.
  5. Create a role with a policy for inserting and reading records for the persons table in the vault you created.
  6. Create a service account assigning the role.
  7. Open the downloaded credentials.json file and copy the contents.
  8. In your terminal, execute export VAULT_URL=$SERVICE_ACCOUNT_KEY_DATA, replacing $SERVICE_ACCOUNT_KEY_DATA with the contents of the credentials.json file you downloaded.

Import seed data

  1. In your terminal, navigate to the data folder.
  2. Execute the following commands.
npm install
node import_data.js

Running the demo

In your terminal, navigate to the demo root directory and execute:

npm install

Next, either run the demo in development mode or in production mode.

Development mode

npm run dev

Go to http://localhost:3000 to view the user experience.

Production mode

npm build
npm start

Go to http://localhost:3000 to view the user experience.

skyflow-adventure-demo-experience's People

Contributors

thefalc avatar

Stargazers

 avatar  avatar

Watchers

 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.