Skip to content

mawerb/DainButterflyDJ

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Getting Started with DainAI

This DainAI tool allows users to easily create songs based on prompts they provide to the agent.

Installation

  1. Install DAIN CLI using the package manager npm:

    npm install -g @dainprotocol/cli
  2. Install ngrok:

    • macOS: Use the package manager brew:

      brew install ngrok
    • Windows: Download the installer from ngrok and follow the installation instructions.

Setup

Once you have installed the dependencies, follow these steps:

1. Clone the repository:

git clone https://github.com/mawerb/DainButterflyDJ.git
npm ci

2. Navigate to the src directory:

cd src

3. Start the server by running:

node server.js

4. Run ngrok to expose your local server:

  • macOS: In a separate terminal window, run ngrok in the src directory:

    ngrok http 3000
  • Windows: In a separate terminal window, run ngrok in the src directory:

    ngrok http 3000

This will generate a publicly accessible URL. Copy this URL.

5. Set environment variables:

  • macOS: Run the following commands in your terminal:

    export ROUTE=<NEW_ROUTE>
    export DAIN_API_KEY=<DAIN_API_KEY>
    export SONG_API_KEY=<SUNO_API_KEY>

    Replace <NEW_ROUTE>, <DAIN_API_KEY>, and <SUNO_API_KEY> with the appropriate values.

  • Windows: Run the following commands in PowerShell:

    $env:ROUTE="<NEW_ROUTE>"
    $env:DAIN_API_KEY="<DAIN_API_KEY>"
    $env:SONG_API_KEY="<SUNO_API_KEY>"

    Replace <NEW_ROUTE>, <DAIN_API_KEY>, and <SUNO_API_KEY> with the appropriate values.

6. Start the development server:

npm run dev

7. Paste the URL you copied earlier into Dain's Service URL input box and get creative with your song prompts!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published