Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since we are no longer polling for data, there are several architecture changes being made:
All of the old files are in
/src/oldWebhook lifecyle management:
setupHooks()function will be called.envfile, and if it is not correct, then it will register new webhooks and delete the old ones.setupHooks()function runs, there will be 3 active registered webhooks, one for each of the following events:Webhook tokens
Webhook tokens are also configured in the
.envfile, and their lifecycle is as follows:setupToken()function will be calledThis function only runs once, and once a webhook token is registered, it doesn't need to be changed. There is an update function for it, but I'm not sure how to incorporate that as of now.
Notes:
There are new npm scripts I made for making running the project easier. Specifically:
npm run start:ngrokwill start the ngrok processnpm run build:dockerwill copy the ngrok url into the.envfile, compile the typescript, then build with docker-composenpm run buildwill do everything the the previous command will but also opens a webpage atlocalhost:3000/authMake sure you start up ngrok before running any of the docker commands, and you can leave it as a process in the background.
closes #16