Netflix-Skunkworks / stethoscope-examples

Example Express application for collecting data from the Stethoscope app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stethoscope examples

This is a small Express server with examples of:

  • querying the Stethoscope app for device information and policy compliance
  • reporting device and policy information along with a username
  • blocking access to pages if the device hasn't recently passed the check

First, run the Stethoscope app

Check out the Stethoscope app repo and run:

npm install
npm run build:react
NODE_ENV=development npm run electron

In development mode, the Stethoscope app will accept CORS requests from localhost, which is necessary for this example server to work.

Install dependencies and run the example server

npm install
npm start

...then open http://localhost:3000

About

Example Express application for collecting data from the Stethoscope app

License:Apache License 2.0


Languages

Language:HTML 70.1%Language:JavaScript 29.9%