Project Initialization β
This guide will detail how to initialize and start the Gin-Vue-Admin project, including backend service, frontend application, and database configuration.
πΊ Video Tutorial
If you prefer video learning, you can watch our video tutorial.
π Prerequisites β
Before starting, please ensure you have completed:
- β Environment Setup - Install Node.js, Go, MySQL and other necessary environments
- β Clone project code to local
- β Database service running normally
π Quick Start β
1. Clone Project β
# Clone main branch code
git clone https://github.com/flipped-aurora/gin-vue-admin.git
# Enter project directory
cd gin-vue-admin2. Project Structure Overview β
gin-vue-admin/
βββ server/ # Backend Go project
β βββ main.go # Program entry point
β βββ config.yaml # Configuration file
β βββ ...
βββ web/ # Frontend Vue project
β βββ src/ # Source code
β βββ package.json # Dependency configuration
β βββ ...
βββ README.md # Project descriptionπ Detailed Tutorial Videos β
π‘ Learning Suggestion
Strongly recommend watching the following episode video tutorials. Although the new UI style has some differences, the basic operations remain unchanged.
Basic Introduction β
- 1. Clone Project and Install Dependencies
- 2. Initialize Project
- 3. Enable Debug Tools + Create Initialization Package
Feature Development β
- 4. Manually Use Automated Creation Features
- 5. Create Business Using Existing Tables
- 6. Use AI to Create Business and Data Source Mode Options
- 7. Create Your Own Backend Methods
Frontend Development β
- 8. Add a Frontend Page
- 9. Configure a Frontend Secondary Page
- 10. Configure Frontend Menu Parameters
- 11. Menu Parameter Practice + Dynamic Menu Title + Menu Highlight Configuration
- 12. Add Menu Controllable Buttons
Advanced Configuration β
π§ Backend Service Startup β
1. Open Backend Project β
Use GoLand or VS Code to open the server folder:
# Enter backend directory
cd server
# Open with GoLand (if installed)
goland .
# Or open with VS Code
code .2. Install Dependencies β
Run the following command in the project root directory to install Go module dependencies:
# Download and organize dependencies
go mod tidyπ Command Description
go mod tidy: Add missing module dependencies, remove unused dependencies- This command will download required third-party packages based on the
go.modfile
3. Start Backend Service β
Method 1: Command Line Startup β
# Run in server directory
go run main.goMethod 2: GoLand Startup β
- Open
main.gofile in GoLand - Click the green triangle button next to the line number
- Or use shortcut
Ctrl+Shift+F10(Windows/Linux) orCmd+Shift+R(macOS)
Method 3: VS Code Startup β
- Press
F5or click debug button - Select "Go: Launch Package"
4. Verify Backend Startup β
If you see the following output, the backend service has started successfully:
[GIN-debug] Listening and serving HTTP on :8888Visit http://localhost:8888/health to check service status.
π¨ Frontend Application Startup β
1. Open Frontend Project β
Use VS Code to open the web folder:
# Enter frontend directory
cd web
# Open with VS Code
code .2. Install Dependencies β
β οΈ Node.js Version Requirement
Ensure your Node.js version >= 18.16.2
# Install project dependencies
npm install
# Or use yarn (if installed)
yarn install
# Or use pnpm (recommended, faster)
pnpm install3. Start Development Server β
# Start development server
npm run serve
# Or use other package managers
yarn serve
pnpm serve4. Verify Frontend Startup β
If you see the following output, the frontend application has started successfully:
App running at:
- Local: http://localhost:8080/
- Network: http://192.168.1.100:8080/ποΈ Database Initialization β
1. Access Initialization Page β
Visit in browser: http://localhost:8080/#/init
2. Configure Database Information β
Fill in database connection information on the initialization page:
- Database Type: Select MySQL
- Host Address:
127.0.0.1 - Port:
3306 - Username:
root - Password: Your database password
- Database Name:
gva(will be created automatically if it doesn't exist)
3. Execute Initialization β
- Confirm all information is correct
- Click "Initialize Now" button
- Wait for initialization to complete

4. Initialization Complete β
After successful initialization, the system will:
- β Create all necessary data tables
- β Insert basic data (admin account, menus, permissions, etc.)
- β Automatically redirect to login page
Default Admin Account:
- Username:
admin - Password:
123456
Appendix. Running Web Project with GoLand β
App.1 Edit Configuration β

App.2 Add npm Startup Item β

App.3 Configuration β

App.4 Configuration Complete β

App.5 Start Web Project β

App.6 Web Project Started Successfully β



