Skip to content

ThunLights/Status-Guard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Status Guard

This is an anti-ddos script created by crossing the cloudflare api and status page.

How to Use

git, nodejs, npm must be installed in advance.

Clone this repo

git clone https://github.com/ThunLights/Status-Guard.git

Install libs

npm install or bun install

Set environment variables

Please write .env with reference to .env.example.

Database

Prisma Accelerate

Click here to register for prisma accelerate.

Please put the url of prisma accelerate in .env's DATABASE_URL.

Caution

You will have to pay for the prisma accelerate because it will exceed the free quota of the prisma accelerate.

If you would like to set up a database for free, please click here.

Migration

npm run db:migration

For normal

npm run build
npm start

For cloudflare workers

Please write ADAPTER_TYPE=cf in .env

npm run build:cf
npx wrangler deploy

This alone will not work, so use trigger.dev.

And login from cli.

npx trigger.dev login

Please write .trigger.json with reference to .trigger.example.json.

npm run trigger

Contributing

We Welcome contributions.

Please see CONTRIBUTING.md

Security

Please see SECURITY.md

About

No description, website, or topics provided.

Resources

License

Contributing

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published