2.0.0 • Published 6 years ago
@sobol/app v2.0.0
@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 installPrerequisites
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
applicationpermissions) - In the app, create a
.envfile 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
httpsngrok url to the.envfile as followsSOBOL_WEBHOOK_URL=<NGROK_URL>/development/events/sobol - Next set
SOBOL_API_URIif not working against production (eg.SOBOL_API_URI=http://localhost:8080/api/v1) - Then run
yarn startoryarn debugto bring up inspector
Production
To run in production:
- In
.env, setNODE_ENV=productionand setSOBOL_WEBHOOK_HOSTto 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.