JSPM

  • Created
  • Published
  • Downloads 149
  • Score
    100M100P100Q69245F
  • License MIT

A CLI and module to start the Hello Quickstart web app and return a client_id

Package Exports

  • @hellocoop/quickstart
  • @hellocoop/quickstart/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@hellocoop/quickstart) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Hellō Quickstart

CLI

You can run the following command to create or retrieve the client_id for a Hellō Application.

npx @hellocoop/quickstart@latest

This will open up a browser window, where you will need to login with Hellō, and then choose to create a new app, or return the client_id.

Options

  • --provider_hint (-p) - space separated string of provider_hint
  • --suffix (-x) - suffix to add to generated app name
  • --integration (-i) - integration name shown in console
  • --file (-f) - file to write out HELLO_CLIENT_ID_DEFAULT
  • --secret (-s) - boolean to generate a HELLO_COOKIE_SECRET_DEFAULT value
  • --wildcard (-w) - boolean to set the wildcard domain Development Redirect URI
  • --debug (-d) - output debug info

Import Package

This package is useful for platform specific installers such as Hellō Quickstart for Next.js

To install in another package

npm i --save-dev @hellocoop/quickstart

You can then use call Quickstart fom another configuration script

import quickstart from '@hellocoop/quickstart';

...
const response_uri = 'http://localhost:8080'
const client_id = await quickstart({
    response_uri
})

There are many options that can be passed to Quickstart. See the Quickstart API for details.