An open API service indexing awesome lists of open source software.

https://github.com/nermalcat69/minimal-waitlist

Minimal Waitlist Page with Discord Webhooks
https://github.com/nermalcat69/minimal-waitlist

waitlist waitlist-page

Last synced: about 1 year ago
JSON representation

Minimal Waitlist Page with Discord Webhooks

Awesome Lists containing this project

README

          

# Minimal Waitlist
![Frame 302](https://github.com/user-attachments/assets/647a0084-362c-4e55-a677-f78d5722eab5)

Minimal Waitlist Page with Discord Webhooks

### How to import to zerops
Go to zerops dashboard and import this project:

```yml
project:
name: Minimal Waitlist
services:
- hostname: app
type: nodejs@20
buildFromGit: https://github.com/nermalcat69/minimal-waitlist
enableSubdomainAccess: true
```

You can assign the `DISCORD_WEBHOOK_URL`environment variable in the service dashboard.

Make sure to create and copy your webhook URL from your Discord server:

Go to your server settings.
Navigate to the desired text channel.
Open 'Integrations' > 'Webhooks'.
Create a new webhook and copy the webhook URL.

### How to export emails to json in discord channel

1. Go to your waitlist channel on your browser and open developer tools and paste the code block in console.

```javascript
const emailRegex = /[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g;

const allText = document.body.innerText;

const emails = new Set(allText.match(emailRegex));

const emailArray = Array.from(emails);
const emailJSON = JSON.stringify(emailArray, null, 2);

const blob = new Blob([emailJSON], { type: 'application/json' });
const link = document.createElement('a');
link.href = URL.createObjectURL(blob);
link.download = 'waitlist-emails.json';
link.click();

console.log("Waitlist exported!!", emailArray);

```