Neru EOS sample app
- Install NodeJS
- Install Neru CLI
- Run
npm install
- Run
neru configure
where you will be asked to set apikey and secret (Nexmo). - Create a
neru.yml
file as perneru.sample.yml
Next step is to configure the appid on Neru:
neru app configure --app-id your-app-id
## Starting the app
POST to /scheduler
with {"command": "start", "maxInvocations": number}
This will start a cron job that runs every minute for 3 minutes (this is for testing purposes and needs to be changed for production)
This scheduler will call the /checkandsend
endpoint which will check if there are csv files that need to be processed. If there are files that need to be processed, the file will be read, SMS sent and a new CSV file will be created on /output
directory containing the results of the SMS sending.
POST to /scheduler
with {"command": "stop"}
To debug the service, you can run neru debug
.