Skip to content
This repository has been archived by the owner on Apr 29, 2024. It is now read-only.

TeaByte/cat-dns

Repository files navigation

this code is shit! Moved to: https://github.com/TeaByte/catway-dns

  1. Clone the Repository

    git clone https://github.com/TeaByte/catdns.git
    cd catdns
  2. Install Dependencies

    npm install
  3. 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

  4. Start the Development Server

    npm run dev