The Notus API Server in Node/Express.
Start the Notus API:
$ yarn start
Start the Notus Worker:
$ yarn worker
$ yarn migration:create NameOfNewMigration
$ curl http://localhost:4000/apps -X POST -H 'Authorization: Bearer dG9rOjIwMDU4MmRkXzMzZDFfNDkyZl85NDViX2Q0ZjZhNDc2OWM0ZDoxOjA=' -H 'Accept: application/json' -H 'Content-Type: application/json' -d '
{
"email": "[email protected]",
"name": "Hoban Dudes"
}'
$ psql postgres -U chuckbergeron;
CREATE DATABASE notusapi;
GRANT ALL PRIVILEGES ON DATABASE notusapi TO chuckbergeron;
DAPPS id name api_key createdAt updatedAt
DAPPS_USERS user_id app_id app_owner bool
USERS_WEBHOOKS user_id webhook_id active bool
USERS id name email phone_number confirmation_code confirmed createdAt updatedAt
WEBHOOKS id name (ie. 'alert users whenever X is above 1000' or 'alert me whenever Y drops below 40') data (blob) createdAt updatedAt