npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

molgenis-node-lifelines-edge

v3.3.0

Published

Edge server for lifelines webshop - Platform integration

Downloads

22

Readme

Edge server for Lifelines order management

Edge server supplies a service to approve lifelines-catelog orders and submits the order to the lifelines platform.

EndPoints

GET /version

  • Returns edge-server version information in json format

POST /edge-server/approve?ordernumber=12345

  • Calls molgenis service to approve the order
  • Calls data platform send out the order
  • Expects ordernumber as query param

POST /edge-server/submit?ordernumber=12345

  • Send notification that the order has been submitted
  • Expects ordernumber as query param

Usage

Prerequisites:

node = lts/erbium

Install:

npm install

Run:

node server.js

By default the server listens at port 3000, see Enviroment section on changing the port.

Debug:

node --inspect server.js

Environment

In order for the edge-server to handle an 'approve order' request the request must be made by a user that has the 'ROLE_lifelines_MANAGER' role.

EDGE_SERVER

  • EDGE_SERVER_PORT: port-number

MOLGENIS or other backend

  • MOLGENIS_URL: https://molgenis-backend.org

Data platform

  • DATA_PLATFORM_URL: https://data-platform.org
  • DATA_PLATFORM_TOKEN: token-for-dataplatform-lifelines

REQUIRED FOR EMAIL SUBMISSION NOTIFICATION

  • EDGE_SERVER_MAIL_FROM: [from email address] // string, defaults to ''
  • EDGE_SERVER_MAIL_TO: [list of email addresses ] // string, defaults ''
  • EDGE_SERVER_MAIL_SUBJECT: [submit trigger email subject ] // defaults ''

OPTIONAL FOR EMAIL SETTINGS

  • EDGE_SERVER_MAIL_HOST: 'some.host.org' // defaults to 'smtp.rug.nl',
  • EDGE_SERVER_MAIL_PORT: 25 // some port defaults to 25,
  • EDGE_SERVER_MAIL_SECURE: true // boolean defaults to true,
  • EDGE_SERVER_MAIL_AUTH: true // boolean, defaults to 'true'
  • EDGE_SERVER_MAIL_AUTH_USER: '' // string required is auth is set to true
  • EDGE_SERVER_MAIL_AUTH_PASS: '' // string required is auth is set to true
  • EDGE_SERVER_MAIL_TLS_REJECT_UNAUTHORIZED: true // boolean defaults to 'true'
  • EDGE_SERVER_MAIL_TLS_ALLOW_INSECURE_AUTH: false // boolean defaults to 'false'
  • EDGE_SERVER_MAIL_IGNORE_TLS: boolean defaults to 'false'
  • EDGE_SERVER_MAIL_LOGGER: true // boolean set to true log sending email, defaults to 'true'
  • EDGE_SERVER_MAIL_DEBUG: false // boolean set to true for detailed transport logging defaults to 'false'