Initial commit

This commit is contained in:
sjk
2025-11-17 13:32:54 +08:00
commit e788eab6eb
1659 changed files with 171560 additions and 0 deletions

45
start.bat Normal file
View File

@@ -0,0 +1,45 @@
@echo off
echo ================================
echo E-commerce Mini Program Startup
echo ================================
echo.
echo Checking backend service status...
tasklist /FI "IMAGENAME eq go.exe" 2>nul | find /I "go.exe" >nul
if %ERRORLEVEL% EQU 0 (
echo [OK] Backend service is running
) else (
echo [ERROR] Backend service not running
echo Please start backend service first: go run cmd/main.go
pause
exit /b 1
)
echo.
echo ================================
echo Project Information
echo ================================
echo Project Path: %CD%\miniprogram
echo API Address: http://localhost:8080/api/v1
echo.
echo ================================
echo Startup Instructions
echo ================================
echo 1. Open WeChat Developer Tool
echo 2. Import miniprogram directory
echo 3. Set JWT Token in login page
echo 4. Click "Use Test Token" or input manually
echo 5. Save and start using the mini program
echo.
echo ================================
echo Quick Test
echo ================================
echo Generate new token: go run generate_token.go (in server directory)
echo Default test token is built-in the login page
echo.
echo Startup completed!
echo ================================
pause