尚未偵測到更新。GitHub 發布版本後會顯示在這裡。
個人 GitHub 帳號下公開儲存庫的擁有者可以登入並驗證所有權,自行管理介紹,無需管理員核准。
登入並產生驗證檔案,在 30 分鐘內將其提交至此儲存庫的預設分支。其他分支或分叉儲存庫中的檔案無效。然後在下方檢查檔案,即可無需管理員核准直接管理專案。請保留檔案以維持管理權限。
如需登入,將前往登入頁面。登入後請回到此處,再次點擊所選的驗證按鈕。
在專案資料夾中執行 /nomorevibe verify,即可驗證所有權並自行管理介紹。
一分鐘完成驗證正在載入完整 README。 以下為已儲存的摘錄。
A modern auction management system built with Next.js 14, TypeScript, Prisma, PostgreSQL, TailwindCSS, and NextAuth.js.
• Multi-Tenant Admin System: Each organization gets their own isolated admin account
• User Management: Admin and Bidder roles with authentication
• Auction Management: Create and manage live auctions
• Player Management: Upload and manage player data with flexible JSON storage
• Real-time Bidding: Live bidding system with Pusher integration
• Responsive Design: Modern UI with dark/light mode support檢視完整 README ↗A modern auction management system built with Next.js 14, TypeScript, Prisma, PostgreSQL, TailwindCSS, and NextAuth.js.
/src
/app
/api/auth/[...nextauth] # NextAuth.js configuration
/(auth) # Authentication pages
/dashboard # Admin dashboard
/auction # Auction management
/bidder # Bidder interface
/components # Reusable UI components
/lib # Utility functions and configurations
- prisma.ts # Prisma client configuration
- pusher.ts # Pusher server/client setup
- auth.ts # Password hashing utilities
/types # TypeScript type definitions
/prisma
- schema.prisma # Database schema
# Clone the repository
git clone <repository-url>
cd squady
# Install dependencies
npm install
Create a .env.local file with the following variables:
# Database
DATABASE_URL="postgresql://username:password@localhost:5432/squady?schema=public"
# NextAuth.js
NEXTAUTH_SECRET="your-secret-key-here"
NEXTAUTH_URL="http://localhost:3000"
# Pusher (Server-side)
PUSHER_APP_ID="your-pusher-app-id"
PUSHER_KEY="your-pusher-key"
PUSHER_SECRET="your-pusher-secret"
PUSHER_CLUSTER="your-pusher-cluster"
# Pusher (Client-side - public variables)
NEXT_PUBLIC_PUSHER_KEY="your-pusher-key"
NEXT_PUBLIC_PUSHER_CLUSTER="your-pusher-cluster"
.env.local file# Generate Prisma client
npx prisma generate
# Push schema to database
npx prisma db push
# (Optional) Seed the database
npx prisma db seed
# Start the development server
npm run dev
Visit http://localhost:3000 to access the application.
The application includes real-time functionality powered by Pusher:
import { usePusher } from '@/lib/pusher-client'
import { useAuctionStore } from '@/lib/store/auction-store'
function AuctionComponent({ auctionId }: { auctionId: string }) {
const { updateBid, addToBidHistory } = useAuctionStore()
usePusher(auctionId, {
onNewBid: (data) => {
updateBid({
bidderId: data.bidderId,
amount: data.amount,
bidderName: data.bidderName,
teamName: data.teamName
})
},
onTimerUpdate: (data) => {
// Handle timer updates
}
})
}
The application uses a custom design system defined in globals.css:
The application uses NextAuth.js with:
Pusher integration provides:
/api/auth/[...nextauth] - NextAuth.js authenticationThis project is licensed under the MIT License.