Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@sobol/app

Package Overview
Dependencies
Maintainers
3
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sobol/app

A starter app designed for integrations with Sobol.

latest
npmnpm
Version
2.0.0
Version published
Weekly downloads
2
100%
Maintainers
3
Weekly downloads
 
Created
Source

@sobol/app

A starter app designed for integrations with Sobol.

Installation

To download and setup this package, run:

mkdir my-app
cd my-app
curl -SL $(npm view @sobol/app dist.tarball) | tar --strip-components 1 -xvz
npm install

Prerequisites

Before running the app, you must first aquire a Sobol API key:

  • In Sobol, navigate to Settings -> Applications
  • Create a new application
  • Assign desired permissions (Webhooks require all the application permissions)
  • In the app, create a .env file at the project root
  • Add your key as SOBOL_API_KEY=XXXXX
  • Add some random example key as EXAMPLE_API_KEY=...

Development

To run the app locally, you need to install ngrok and then:

  • Run ngrok http 8085
  • Copy the https ngrok url to the .env file as follows SOBOL_WEBHOOK_URL=<NGROK_URL>/development/events/sobol
  • Next set SOBOL_API_URI if not working against production (eg. SOBOL_API_URI=http://localhost:8080/api/v1)
  • Then run yarn start or yarn debug to bring up inspector

Production

To run in production:

  • In .env, set NODE_ENV=production and set SOBOL_WEBHOOK_HOST to your server's hostname
  • Run yarn start-production

Help and Feedback

For help and feedback, please send us an email to team@sobol.io and we will respond as soon as possible.

FAQs

Package last updated on 07 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