This template should help get you started developing with Vue 3 in Vite.
VSCode + Volar (and disable Vetur).
See Vite Configuration Reference.
npm install
npm run dev
npm run build
Before starting the backend configuration, make sure you have completed the following preparations:
- Install IntelliJ IDEA and configure JDK 17 environment.
- Ensure that Maven is installed and configured correctly.
Here are the steps to configure the database and email for each service:
-
Open IntelliJ IDEA and import your Maven project.
-
In the project structure, locate the configuration file for each service module.
-
For database configuration, find the configuration file for each service module (
backend/xxx-server/src/main/resources/application.yml
). -
In the configuration file, locate the
datasource
section and modify the property values as shown in the example below:datasource: url: jdbc:mysql://localhost:3306/your_database_name?characterEncoding=UTF-8&serverTimezone=Asia/Shanghai username: your_username password: your_password driver-class-name: com.mysql.cj.jdbc.Driver
Replace
your_database_name
with your database name,your_username
with your username, andyour_password
with your password.
-
Locate the configuration file for auth-server module(
backend/auth-server/src/main/resources/application.yml
). -
In the configuration file, find the
mail
section and modify the property values as shown in the example below:mail: # SMTP server host host: smtp.163.com # Port number port: 465 # Service protocol protocol: smtp # Default encoding default-encoding: UTF-8 # Email account for sending username: replace_with_your_account # Authorization code password: replace_with_your_password
Replace
smtp.163.com
with your SMTP server host,replace_with_your_account
with your email account for sending, andreplace_with_your_password
with your authorization code.