docs: update all markdown files, switch remote to Gitea
Deploy to VPS / deploy (push) Failing after 34s
Deploy to VPS / deploy (push) Failing after 34s
- Update root README.md: remove Leptos/WASM/SQLite, document Next.js - Update frontend README.md: replace create-next-app boilerplate - Update frontend AGENTS.md: project-specific overview - Update CLAUDE.md: remove all auth references - Update backend ARCHITECTURE.md: remove adminAuth from middleware list - Switch git remote from gitlab to gitea (origin → gitea)
This commit is contained in:
@@ -15,7 +15,7 @@ services/backend/
|
||||
│ │ ├── logger/
|
||||
│ │ │ └── index.ts # Pino logger with child context support
|
||||
│ │ ├── middlewares/
|
||||
│ │ │ └── index.ts # Express middleware (errorHandler, asyncHandler, adminAuth)
|
||||
│ │ │ └── index.ts # Express middleware (errorHandler, asyncHandler, rateLimit)
|
||||
│ │ └── utils/ # Utility functions (placeholder)
|
||||
│ │
|
||||
│ ├── modules/ # Feature modules (Modular MVC pattern)
|
||||
|
||||
@@ -1,5 +1,10 @@
|
||||
<!-- BEGIN:nextjs-agent-rules -->
|
||||
# This is NOT the Next.js you know
|
||||
# Bete Frontend — Project Overview
|
||||
|
||||
This version has breaking changes — APIs, conventions, and file structure may all differ from your training data. Read the relevant guide in `node_modules/next/dist/docs/` before writing any code. Heed deprecation notices.
|
||||
<!-- END:nextjs-agent-rules -->
|
||||
Next.js 16 (App Router), React 19, TypeScript strict, Tailwind v4, shadcn/ui, base-ui.
|
||||
|
||||
Key points:
|
||||
- **All pages** are `"use client"` — the dashboard is fully client-rendered
|
||||
- **API client** at `src/lib/api/` — fetch-based, covers all 30+ backend endpoints
|
||||
- **WebSocket** at `src/lib/ws/` — auto-reconnecting client with typed event subscriptions
|
||||
- **Static export**: `output: "export"` in next.config.ts, served via nginx
|
||||
- **No authentication**: all endpoints are public
|
||||
|
||||
+31
-26
@@ -1,36 +1,41 @@
|
||||
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
|
||||
# Bete Frontend
|
||||
|
||||
## Getting Started
|
||||
Next.js 16 (React 19) dashboard untuk Discord Moderation Watcher.
|
||||
|
||||
First, run the development server:
|
||||
**Stack:** Next.js 16 (App Router, static export), React 19, TypeScript strict, Tailwind v4, shadcn/ui, base-ui, lucide-react.
|
||||
|
||||
## Dev
|
||||
|
||||
```bash
|
||||
npm run dev
|
||||
# or
|
||||
yarn dev
|
||||
# or
|
||||
pnpm dev
|
||||
# or
|
||||
bun dev
|
||||
bun run dev # next dev — port 3000
|
||||
bun run build # next build — static export ke out/
|
||||
bun run lint # Biome check
|
||||
```
|
||||
|
||||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
|
||||
## Architecture
|
||||
|
||||
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
|
||||
```
|
||||
src/
|
||||
├── app/ # Pages
|
||||
│ ├── page.tsx # Redirect ke /dashboard
|
||||
│ └── dashboard/ # Dashboard layout + tabs
|
||||
│ ├── layout.tsx # Sidebar, header, WS provider, chatbot
|
||||
│ └── page.tsx # Tab routing (messages/live/dashboard)
|
||||
├── features/
|
||||
│ ├── messages/ # Message feed, search, review, detail modal
|
||||
│ ├── live/ # Voice connection, music player, recordings
|
||||
│ ├── dashboard/ # Stats, users, channels overview
|
||||
│ └── mascot/ # AI chatbot
|
||||
├── lib/
|
||||
│ ├── api/ # Fetch-based API client (all BE endpoints)
|
||||
│ ├── ws/ # WebSocket client + React context
|
||||
│ └── hooks/ # Shared hooks (config, auth)
|
||||
└── components/
|
||||
└── layout/ # Sidebar, header, mobile tab bar
|
||||
```
|
||||
|
||||
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
|
||||
## API
|
||||
|
||||
## Learn More
|
||||
Backend berjalan di port 3001. Frontend mengakses API via `window.location` (same-origin atau proxy).
|
||||
|
||||
To learn more about Next.js, take a look at the following resources:
|
||||
|
||||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
|
||||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
|
||||
|
||||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
|
||||
|
||||
## Deploy on Vercel
|
||||
|
||||
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
|
||||
|
||||
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
|
||||
WebSocket terhubung otomatis ke `/ws` di host yang sama.
|
||||
|
||||
Reference in New Issue
Block a user