Skip to content

Commit 6978150

Browse files
authored
Merge pull request #1 from zhihu/v0.1.1
feat: Release v0.1.1 - Add Complete AI Chat System with Nuxt.js UI and Spring AI Backend
2 parents cec2f3f + be9f921 commit 6978150

File tree

70 files changed

+5974
-14
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+5974
-14
lines changed

.gitignore

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ target/
88

99
### vitepress ###
1010
dist/
11-
11+
dist
1212
### IntelliJ IDEA ###
1313
.gradle/
1414
.idea/
@@ -38,9 +38,44 @@ build/
3838
!**/src/main/**/build/
3939
!**/src/test/**/build/
4040

41+
# ===============================================
42+
# Node.js & Frontend (Nuxt)
43+
# ===============================================
44+
### Node.js ###
45+
node_modules/
46+
npm-debug.log*
47+
yarn-debug.log*
48+
yarn-error.log*
49+
lerna-debug.log*
50+
51+
### Package Managers ###
52+
package-lock.json
53+
yarn.lock
54+
pnpm-lock.yaml
55+
.pnpm-debug.log*
56+
57+
### Nuxt.js ###
58+
.nuxt/
59+
.output/
60+
.nitro/
61+
dist/
62+
.cache/
63+
.temp/
64+
65+
### Frontend Build Tools ###
66+
.parcel-cache/
67+
.next/
68+
.svelte-kit/
4169
### VS Code ###
4270
.vscode/
4371

72+
### Spring Web Static
73+
**/static/_nuxt/*
74+
**/static/chat/*
75+
**/static/knowledge/*
76+
**/static/*.html
77+
**/static/*.ico
78+
4479
### Mac OS ###
4580
.DS_Store
4681

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
## [0.1.1] - 2025-07-16
6+
7+
### 📈 Improvements
8+
9+
- Add fust-ai-chat-ui by nuxt
10+
- Add fust-ai-chat-web by spring-ai
11+
12+
13+

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -201,12 +201,19 @@ FUST 提供了项目脚手架,帮助您快速创建基于 FUST 框架的项目
201201
### 命令行创建(MacOS)
202202

203203
```bash
204-
export ORIGIN_HOME=$JAVA_HOME && \
205-
export JAVA_HOME="$(/usr/libexec/java_home -v 17)" && \
206-
mvn archetype:generate -DarchetypeGroupId=com.zhihu.fust \
207-
-DarchetypeArtifactId=fust-boot-archetype -DarchetypeVersion=0.1.0 \
208-
-DinteractiveMode=false -DarchetypeCatalog=local -DgroupId=demo -DartifactId=demo-yoda && \
209-
export JAVA_HOME=$ORIGIN_HOME && unset ORIGIN_HOME
204+
# fust的 mvn archetype 需要安装到本地
205+
cd mvn-archetype
206+
mvn clean install
207+
208+
# 进入到你的工作目录
209+
cd YOUR_PROJECT_DIR
210+
export ORIGIN_HOME=$JAVA_HOME &&
211+
export JAVA_HOME="$(/usr/libexec/java_home -v 17)" &&
212+
mvn archetype:generate -DarchetypeGroupId=com.zhihu.fust \
213+
-DarchetypeArtifactId=fust-boot-archetype -DarchetypeVersion=0.1.1 \
214+
-DinteractiveMode=false -DarchetypeCatalog=local -DgroupId=demo -DartifactId=demo-yoda &&
215+
export JAVA_HOME=$ORIGIN_HOME && unset ORIGIN_HOME
216+
210217
```
211218

212219
### 项目结构

bom/build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ plugins {
77
dependencies {
88
constraints {
99
// projects
10+
api project(":fust-ai:fust-ai-chat-web")
1011
api project(":fust-base:fust-commons")
1112
api project(":fust-base:fust-core")
1213
api project(":fust-base:fust-provider")

build.gradle

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ allprojects {
88
group = project.findProperty('group')
99
version = project.findProperty('version')
1010
}
11+

buildSrc/src/main/groovy/com.zhihu.fust.java-conventions.gradle

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ java.targetCompatibility = JavaVersion.VERSION_17
2626
java.sourceCompatibility = JavaVersion.VERSION_17
2727

2828
dependencies {
29+
api platform("org.springframework.ai:spring-ai-bom:${springAiVersion}")
2930
api platform("org.springframework.boot:spring-boot-dependencies:${springBootVersion}")
3031
api platform("com.linecorp.armeria:armeria-bom:${armeriaVersion}")
3132
api platform("io.netty:netty-bom:${nettyVersion}")
@@ -51,6 +52,7 @@ java {
5152

5253
tasks.withType(JavaCompile) {
5354
options.encoding = 'UTF-8'
55+
options.compilerArgs << '-parameters'
5456
}
5557

5658
tasks.withType(Javadoc) {
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lib/
2+
services/

0 commit comments

Comments
 (0)