init: 初始化 AssetX 项目仓库

包含 webapp(Next.js 用户端)、webapp-back(Go 后端)、
antdesign(管理后台)、landingpage(营销落地页)、
数据库 SQL 和配置文件。
This commit is contained in:
2026-03-27 11:26:43 +00:00
commit 2ee4553b71
634 changed files with 988255 additions and 0 deletions

24
webapp-back/start.sh Normal file
View File

@@ -0,0 +1,24 @@
#!/bin/bash
echo "========================================="
echo "AssetX API Server"
echo "========================================="
# Load environment variables
if [ -f .env ]; then
export $(cat .env | grep -v '^#' | xargs)
fi
# Check if MySQL is running (optional)
echo "Checking MySQL connection..."
mysql -h$DB_HOST -P$DB_PORT -u$DB_USER -p$DB_PASSWORD -e "SELECT 1" > /dev/null 2>&1
if [ $? -eq 0 ]; then
echo "✓ MySQL connection successful"
else
echo "⚠ MySQL connection failed - using SQLite"
export DB_TYPE=sqlite
fi
# Run the application
echo "Starting server on port $PORT..."
go run main.go