New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@streamrail/dsui

Package Overview
Dependencies
Maintainers
19
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@streamrail/dsui

Datastore UI

  • 0.2.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
19
increased by58.33%
Maintainers
19
Weekly downloads
 
Created
Source

CircleCI Build Status Latest npm release

dsui

Datastore Emulator UI

DSUI example screenshot

Requirements

Node Version >= 7.6.0

Installation

npm i -g @streamrail/dsui

Usage

# Start the datastore emulator
gcloud beta emulators datastore start

# Open a new terminal
$(gcloud beta emulators datastore env-init)
dsui

# Open http://localhost:3000 and start browsing

For more information about the datastore emulator, please see this document.

Options

OptionShortValue TypeDescriptionDefaultMandatory
portpNumberHTTP server port3000
project-idjStringDatastore Project IDDATASTORE_PROJECT_ID (Environment Variable)
api-endpointeStringDatastore API EndpointDATASTORE_EMULATOR_HOST (Environment Variable)
filterfArrayUI Filters[]
key-filenamekStringPrivate key file path
versionv-DSUI module version
helph-Show help menu

Customize UI Filters

You can customize the UI filters by specifiying an array of Field Names.
For example when running:

dsui --filter Id --filter Name

The UI will include 2 inputs for filtering by Id and Name fields.
Populating Name with somename will result a query with query.filter('Name', '=', 'somename')
Note: At the moment this feature supports fields of type String only.

For more information, please see this document.

Develop

git clone https://github.com/streamrail/dsui.git
cd dsui
npm run watch

Open http://localhost:3000

Tests

Running the tests will seed the datastore emulator with predefined data. For running the tests you'll need to run 3 terminals:

Terminal 1

# start datastore emulator
gcloud beta emulators datastore start --consistency=1 --no-store-on-disk

Terminal 2

# starting the dsui server
$(gcloud beta emulators datastore env-init)
npm run watch

Terminal 3

# seeding & running tests
$(gcloud beta emulators datastore env-init)
npm run test

Keywords

FAQs

Package last updated on 19 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc