尚未检测到更新。GitHub 发布版本后会显示在这里。
个人 GitHub 账号下公开仓库的所有者可以登录并验证所有权,自行管理介绍,无需管理员批准。
登录并生成验证文件,在 30 分钟内将其提交到此仓库的默认分支。其他分支或分叉仓库中的文件无效。然后在下方检查文件,即可无需管理员批准直接管理项目。请保留文件以维持管理权限。
如需登录,将前往登录页面。登录后请回到此处,再次点击所选的验证按钮。
在项目文件夹中运行 /nomorevibe verify,即可验证所有权并自行管理介绍。
一分钟完成验证tunnaduong/cbh-youth-online-api
翻译准备中
取自仓库 README
正在加载完整 README。 以下为已保存的摘录。
A comprehensive social and community platform built with the Laravel framework.
Chuyen Bien Hoa Youth Online is a feature-rich web application designed to foster a vibrant online community. It combines a traditional forum system with modern social media features like user profiles, activity feeds, real-time chat, and stories. The platform also includes a detailed administrative backend for managing users, content, and school-related activities such as class schedules and student violations.查看完整 README ↗Chuyen Bien Hoa Youth Online is a feature-rich community platform for students of THPT Chuyên Biên Hòa. It combines a traditional forum system with modern social media features like user profiles, activity feeds, real-time chat, and stories, plus a points wallet, a gift shop, and study tools. The platform also includes administrative tools for managing users, content, and school-related activities such as class schedules and student violations.
This repository is the Laravel 10 backend served at https://api.chuyenbienhoa.com. It exposes one JSON API used by the web app (chuyenbienhoa.com), the mobile app, and the gift shop (giftshop.chuyenbienhoa.com). Authentication uses Laravel Sanctum bearer tokens and real-time features use Laravel Reverb. A legacy Inertia.js frontend still lives in routes/web.php, but the clients above don't use it.
/admin dashboard, plus a Filament panel, for managing users, forum content, moderation, reports, deposits and withdrawals, student verification, the shop, school classes, schedules, and student violations.Follow these instructions to get a local copy of the project up and running for development and testing purposes.
Clone the repository:
git clone https://github.com/tunnaduong/cbh-youth-online-api.git
cd cbh-youth-online-api
Install PHP dependencies:
composer install
Install JavaScript dependencies:
npm install
Create your environment file: Copy the example environment file and generate your application key.
cp .env.example .env
php artisan key:generate
Configure your environment (.env):
Open the .env file and update the database credentials (DB_HOST, DB_PORT, DB_DATABASE, DB_USERNAME, DB_PASSWORD) and any other necessary configuration, such as mail, Reverb, OAuth (Google/Facebook/Apple), VAPID, SePay, and AI keys. Use a persistent CACHE_DRIVER (file or redis, not array).
Run database migrations and link storage:
php artisan migrate
php artisan storage:link
Compile frontend assets (legacy Inertia site only): To build the assets for development and watch for changes:
npm run dev
For production, run:
npm run build
Serve the application:
php artisan serve
php artisan reverb:start # websockets for chat
php artisan queue:work # media compression, AI replies, broadcasts
php artisan schedule:work # scheduled jobs (expired stories, newsletter)
The application will be available at http://localhost:8000 by default.
Once the application is running, point a client (web, mobile, or gift shop) at it, or call the API directly.
Admin Access: To use the admin features, a user must have their role set to admin in the cyo_auth_accounts table. The admin dashboard lives in the web app at /admin and calls the /v1.0/admin/* endpoints.
API: The application exposes a versioned RESTful API under the /v1.0/ prefix (for example https://api.chuyenbienhoa.com/v1.0/login). Refer to the routes/api.php file for a full list of available endpoints.
Deployment: Production runs on an aaPanel server with nginx and PHP-FPM. See deploy/ for the nginx upload-size and supervisor queue-worker configs.
The default branch is main: unless told otherwise, commit and push changes there.
This project is open-sourced software licensed under the MIT license.