@sobol/app
v2.0.0
Published
A starter app designed for integrations with Sobol.
Downloads
9
Keywords
Readme
@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 followsSOBOL_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
oryarn debug
to bring up inspector
Production
To run in production:
- In
.env
, setNODE_ENV=production
and setSOBOL_WEBHOOK_HOST
to your server's hostname - Run
yarn start-production
Help and Feedback
For help and feedback, please send us an email to [email protected] and we will respond as soon as possible.