Skip to content

Commit a372f13

Browse files
author
狄云
committed
添加说明文档
1 parent 2873a4b commit a372f13

File tree

8 files changed

+39
-22
lines changed

8 files changed

+39
-22
lines changed

README.md

Lines changed: 36 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,42 @@
1-
<!-- TODO 说明文档待完成 -->
2-
# my-navigation-site
1+
# 以极简为目的的网址导航
2+
因为自己工作及生活中需要用到一些网址导航的页面,但找到的一些网址导航项目要么过于复杂,要么有些基础功能都没有实现(比如没有后台管理),对于非程序员非常不友好。
33

4-
## Project setup
5-
```
6-
npm install
7-
```
4+
在ChatGPT等AI技术发展火热的今天,我想虽然自己不太会写代码,但或许也能借助AI的力量实现一个简单的项目,所以开发了这样一个自己用的上,且能检验一下自己使用ChatGPT能力的网址导航项目。
85

9-
### Compiles and hot-reloads for development
10-
```
11-
npm run serve
6+
## 使用说明
7+
### 使用docker compose方式部署
8+
首先git clone本项目,进入项目目录,执行以下命令:
9+
```bash
10+
docker compose up -d
1211
```
12+
等待部署完成,访问http://127.0.0.1:8888,即可访问网址导航页面。
1313

14-
### Compiles and minifies for production
15-
```
16-
npm run build
17-
```
14+
### 后台管理
15+
后台地址默认添加后缀/admin即可:http://127.0.0.1:8888/admin
16+
部署后,会自动创建一个管理员账号,账号名为admin,密码为123456。
17+
密码可在登录后修改。
18+
后续愉快的创建分类及网址就完事了。
19+
20+
### 技术栈说明
21+
用户端:Vue.js
22+
后台管理:pureAdmin
23+
后端:fastapi
24+
数据库:sqlite
25+
26+
### 项目截图
27+
#### 用户端
28+
![用户端截图](./images/用户端.jpg)
29+
30+
#### 后台管理
31+
![后台修改密码](./images/后台修改密码.jpg)
32+
33+
![后台修改密码](./images/后台添加网址.jpg)
34+
35+
## 致谢
36+
- [ChatGPT](https://chatgpt.com)
37+
- [pureAdmin](https://github.com/pure-admin/vue-pure-admin)
38+
- [设计图](https://js.design/community?category=detail&type=resource&id=6231c96a70f79b38da026d4e)
39+
- [那么,我是如何使用 ChatGPT 的](https://kenengba.com/post/3800.html)
40+
- 感谢一个可以随时腾讯会议帮我看代码的朋友
1841

19-
### Lints and fixes files
20-
```
21-
npm run lint
22-
```
2342

24-
### Customize configuration
25-
See [Configuration Reference](https://cli.vuejs.org/config/).

backend/db/data.db

0 Bytes
Binary file not shown.

frontend/nav-admin/src/views/website/creatWebForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const handleCategoryChange = (value: string) => {
7272
<el-input
7373
v-model="newFormInline.url"
7474
class="!w-[300px]"
75-
placeholder="请输入网站url"
75+
placeholder="请输入网站url,包含“http(s)://”"
7676
/>
7777
</el-form-item>
7878
<el-form-item label="分类">

frontend/nav-admin/src/views/website/webForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ const processRelativePath = (path: string) => {
102102
<el-input
103103
v-model="newFormInline.url"
104104
class="!w-[300px]"
105-
placeholder="请输入网站url"
105+
placeholder="请输入网站url,包含“http(s)://”"
106106
/>
107107
</el-form-item>
108108
<el-form-item label="图标">

frontend/navigation/src/components/AppContent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</div>
1313
<div class="footer">
1414
<a href="https://github.com/DemoJ/ThinNav" target="_blank" class="footer-link">
15-
<i class="fab fa-github"></i> Created by diyun
15+
<i class="fab fa-github"></i> Created by Diyun and ChatGPT
1616
</a>
1717
</div>
1818
</div>

images/后台修改密码.jpg

36.7 KB
Loading

images/后台添加网址.jpg

70.7 KB
Loading

images/用户端.jpg

634 KB
Loading

0 commit comments

Comments
 (0)