Skip to content

Commit

Permalink
Update Readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RitikJaiswal75 authored Aug 3, 2023
1 parent c5fb0aa commit 6f1abf4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ This project uses Cloudflare Workers as the platform to manage cron jobs. Cloudf

## Verification Mechanism

To ensure secure communication between the cron jobs and the backend, every request is signed with an RSA private key, and the JWT (JSON Web Token) is set in the authorization header. The backend, which uses RDS (Relational Database Service), will then verify the JWT using an RSA public key.
To ensure secure communication between the cron jobs and the backend, every request is signed with an RSA private key, and the JWT (JSON Web Token) is set in the authorization header. The backend will then verify the JWT using an RSA public key.

## How to Set Up Locally

Expand Down Expand Up @@ -63,7 +63,9 @@ yarn dev
ngrok http <PORT_NUMBER>
```

Replace `<PORT_NUMBER>` with the port number your backend is running on (e.g., 3000). 11. Ngrok will generate a public URL (e.g., `https://abc123.ngrok.io`) that forwards requests to your local server. Copy this ngrok URL. 12. Paste the ngrok URL in the "else" part of the Cron Jobs project's `src/config.ts` file, inside the `handleConfig` function. 13. Now set the desired trigger time as mentioned [here](#how-to-set-trigger-time)
Replace `<PORT_NUMBER>` with the port number your backend is running on (e.g., 3000).
11. Ngrok will generate a public URL (e.g., `https://abc123.ngrok.io`) that forwards requests to your local server. Copy this ngrok URL. 12. Paste the ngrok URL in the "else" part of the Cron Jobs project's `src/config.ts` file, inside the `handleConfig` function.
13. Now set the desired trigger time as mentioned [here](#how-to-set-trigger-time)

Now, your backend will get the call at the set time using the public ngrok URL. Remember to keep the backend running with ngrok to ensure the scheduled cron jobs work as intended.

Expand Down

0 comments on commit 6f1abf4

Please sign in to comment.