Skip to content

ypingmoe/bot-console

Repository files navigation

Solana Copy Bot Frontend

Next.js + TypeScript + Tailwind dashboard for operating the Python bot in ../solana-copy-bot.

Features

  • Start / stop bot process (server-side API route)
  • Live status polling
  • Read bot config from Python bot .env
  • Preview training export dataset (jsonl)

Local setup

  1. Install dependencies:
    npm install
  2. Copy env:
    copy .env.example .env.local
  3. Run dev server:
    npm run dev
  4. Open http://localhost:3000

Vercel deploy

This project is ready to deploy to Vercel:

  1. Push this folder to a Git repository.
  2. Import project in Vercel.
  3. Set environment variables in Vercel project settings:
    • BOT_ROOT_PATH (path where bot is available in runtime; usually not used on Vercel serverless)
    • BOT_PYTHON_BIN (optional)
  4. Deploy.

Important deployment note

The start/stop process API (/api/control) depends on local process management and direct filesystem access to the Python bot.
On Vercel serverless, long-lived Python bot processes are not suitable. Recommended production split:

  • Deploy this frontend to Vercel for visualization/control UX.
  • Run the Python bot on a VM/container (Railway, Fly.io, Render, VPS).
  • Replace /api/control and status endpoints to call your bot host API.

About

🚀 Copy Solana whale trades in real time with AI-ready export data?

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors