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

@egendata/cli

Package Overview
Dependencies
Maintainers
4
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@egendata/cli

A simple CLI for running and developing against the egendata stack

  • 0.3.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Egendata CLI

A simple CLI for running and developing against the egendata stack

Prerequisites

In order to run the cli, you need to install node.js and docker-compose.

node.js

docker

Install and run or just run

You can either install the cli as a global package and use the command egendata

npm install -g @egendata/cli
egendata --help

...or run it immediately via npx

npx @egendata/cli --help

All the examples assume the cli is installed. If you choose not to install the cli globally, just replace egendata with npx @egendata/cli.

Tunneling a local service

Command: egendata tunnel [flags] [start command]

This will use localtunnel.me to expose your service on the interwebs

egendata tunnel --port=4000 --subdomain=fooservice npm start

This will open a tunnel on https://fooservice.localtunnel.me pointing to http://localhost:4000. It will also call:

NODE_ENV=development CLIENT_ID=https://fooservice.localtunnel.me OPERATOR_URL=https://operator-test.dev.services.jtech.se/api PORT=4000 npm start

The Operator URL is that of the test Operator which can be used with the test build of the Egendata app.

Unsafe tunneling

...is of course not recommended but it is possible. Just add the --unsafe flag.

Running Egendata infrastructure locally

Commands:

  • egendata infra start

    This will spin up docker containers for:

    • Operator DB: postgres://postgresuser:postgrespasword@localhost:5432/egendata

    • Operator: http://[your-ip]:3000

    • Logging: elasticsearch apm viewable on http://localhost:5601

  • egendata infra stop

    This stops all docker containers started by egendata infra start

Flags

  • --no-log – No logging infrastructure

  • --no-operator – No Operator started - only Operator DB

  • --example – Starts the CV example site on http://[your-ip]:4000

  • --attach – Runs the containers attached to the terminal

Keywords

FAQs

Package last updated on 16 Jan 2020

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