Initial commit: SQL audit platform v0.1.0
FastAPI backend with auth, user, instance, ticket, query, dashboard APIs. React + TypeScript frontend with mock data UI (10 pages). SQLite + async SQLAlchemy, JWT auth, role-based access control. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
commit
439155c92e
290 files changed
+61950
No files matched your search
@@ -0,0 +1,33 @@
|
||||
@echo off
|
||||
chcp 65001 >nul
|
||||
echo === Web-Lite 数据审核平台启动脚本 ===
|
||||
|
||||
echo [1/4] 安装后端依赖...
|
||||
cd backend
|
||||
if not exist "venv" (
|
||||
python -m venv venv
|
||||
)
|
||||
call venv\Scripts\activate
|
||||
pip install -r requirements.txt -q
|
||||
|
||||
echo [2/4] 启动后端 (http://localhost:9000)...
|
||||
start /b python -m uvicorn app.main:app --host 0.0.0.0 --port 9000 --reload
|
||||
|
||||
echo [3/4] 安装前端依赖...
|
||||
cd ..\frontend
|
||||
if not exist "node_modules" (
|
||||
npm install
|
||||
)
|
||||
|
||||
echo [4/4] 启动前端 (http://localhost:5173)..."
|
||||
start /b npm run dev
|
||||
|
||||
echo.
|
||||
echo === 服务已启动 ===
|
||||
echo 前端: http://localhost:5173
|
||||
echo 后端: http://localhost:9000
|
||||
echo API 文档: http://localhost:9000/docs
|
||||
echo 默认账号: admin / 123456
|
||||
echo.
|
||||
echo 按 Ctrl+C 停止所有服务
|
||||
pause
|
||||
Reference in new issue
Block a user