this code is shit! Moved to: https://github.com/TeaByte/catway-dns
-
Clone the Repository
git clone https://github.com/TeaByte/catdns.git cd catdns
-
Install Dependencies
npm install
-
Make
.env
File# Github OAuth GITHUB_ID=Iv1.08bc0f... GITHUB_SECRET=7c4a88b705f.... # NextJS NEXTAUTH_URL=https://07ba-5-1.... NEXTAUTH_SECRET=2jOHkDR1p9zV.... # Database ( Storing Users ) DATABASE_URL=postgres://TeaByte:HuypCZG.... SHADOW_DATABASE_URL=postgres://TeaByte:H.... # Cloudflare ( For DNS Mangment ) CLOUDFLARE_API_KEY=WWEX-j9I..... CLOUDFLARE_ZONE_ID=070a08f9a.....
Cloudflare Tokens: https://developers.cloudflare.com/fundamentals/api/get-started/create-token
Github Tokens: https://github.com/settings/apps
Neon PostgreSQL: https://console.neon.tech -
Start the Development Server
npm run dev