Skip to content

Latest commit

 

History

History
57 lines (49 loc) · 3.01 KB

SETUP.md

File metadata and controls

57 lines (49 loc) · 3.01 KB

Setup

From the creator of https://lootlabs.pages.dev.

Need Help? I'll Set It Up for $5 in Crypto! 💰

If this setup feels overwhelming, I can help for just $5 in crypto. Ping me in the LootLabs Discord (@kbdevs) to get started.


📌 Setup Guide

1️⃣ Deploy on Cloudflare Workers

  1. Log in to your Cloudflare Dashboard.
  2. Navigate to Compute (Workers). image
  3. Click Create. image
  4. Ensure you're on the Workers tab.
  5. Click Quick Start. image
  6. Name your worker something memorable (e.g. lootlabsapi) image
  7. Click Edit code image
  8. Replace all the code with script.js
  9. Click Deploy image
  10. Click back
image 11. Click **Storage & Databases** then **KV** image 12. Click **Create** image 13. Name it lootlabs and click **Create** image 14. Go back to **Compute (Workers)** and click on your lootlabs worker image 14. Click **Settings** image 15. Click **Add** image 16. Click **KV Namespace**
image
17. Click **Save**
image
17. Click edit code and scroll to the top of script and customize it to your use.

Note

If you get too many requests, you may go over the cloudflare KV free tier usage, if this happens just go into the script and change the analytics toggle to false.

🛠 Example Usage

If your deployed Worker URL is https://yourworker.workers.dev/, a typical request would be:

https://yourworker.workers.dev/?url=example