[FEATURE]: Add Web UI Dashboard (Next.js)

未关闭
#65 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
35/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
冷清
技术栈
next.js, python, tailwindcss

调研方向

首先检查现有的 CLI 交互以及 main.py 中的后端入口点。围绕 wallet、交易、挖矿和 chain 工作流定义列出的 REST 端点和 Next.js 仪表板;当 frontend 能够通过 API 执行并显示这些操作时,即表示完成。

由索引模型根据 Issue 内容生成。

描述

enhancement
Feature and its Use Cases

🚀 Feature Request: Web UI Dashboard for MiniChain

📌 Summary

Replace the current CLI-based interaction with a modern web-based dashboard built using Next.js. This will improve usability, accessibility, and enable easier interaction with the MiniChain node.


🎯 Goals
  • Provide a user-friendly interface for interacting with the blockchain node
  • Replace manual CLI commands with intuitive UI actions
  • Enable real-time visualization of blockchain data

🧩 Proposed Features
1. 💼 Wallet UI
  • Display current wallet address
  • Show account balance
  • Copy address functionality
2. 💸 Send Transactions
  • Input field for recipient address
  • Input field for amount
  • Submit button to send transaction
3. ⛏️ Mining Controls
  • Button to trigger mining
  • Display mining status (pending/success)
  • Show mining rewards
4. 📜 Transaction History
  • List of past transactions

  • Include:

    • sender
    • receiver
    • amount
    • timestamp
5. ⛓️ Blockchain Explorer (Optional)
  • View blocks
  • Show block hash, previous hash, transactions

⚙️ Technical Approach
Backend Changes
  • Expose REST API endpoints in main.py:

    • GET /balance
    • GET /address
    • POST /send
    • POST /mine
    • GET /chain
Frontend
  • Framework: Next.js
  • Styling: Tailwind CSS
  • API communication via fetch/axios

📦 Example API Contract
GET /balance
{
  "balance": 100
}

POST /send
{
  "to": "address",
  "amount": 10
}

🧪 Benefits
  • Improves developer and user experience
  • Makes project more accessible for demos and learning
  • Enables future integration with external systems

🏷️ Labels
  • enhancement
  • frontend
  • good first issue

🙌 Contribution

I would like to work on this feature and implement the frontend + backend integration.

@Zahnentferner whats your view?
I am ready to work on this

Additional Context

No response

Code of Conduct
  • I have joined the Discord server and will post updates there
  • I have searched existing issues to avoid duplicates
主要语言
Python
星标
12
派生
27
平均合并
2 分钟
30 天内合并 PR
1

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

StabilityNexus/MiniChain 的其他 Issue

查看 StabilityNexus/MiniChain 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。