https://github.com/saobby/saobby-home-static
我的个人主页的前端
https://github.com/saobby/saobby-home-static
Last synced: 8 months ago
JSON representation
我的个人主页的前端
- Host: GitHub
- URL: https://github.com/saobby/saobby-home-static
- Owner: Saobby
- Created: 2022-09-25T11:32:57.000Z (almost 4 years ago)
- Default Branch: development
- Last Pushed: 2025-02-11T09:48:34.000Z (over 1 year ago)
- Last Synced: 2025-02-11T10:24:01.544Z (over 1 year ago)
- Language: JavaScript
- Homepage: https://www.saobby.com
- Size: 169 MB
- Stars: 7
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# saobby-home-static
[我的个人主页](https://www.saobby.com/)的前端代码,欢迎提交 `Issue` 和 `PR`!
- - - - -
部署状态:

# 前端调试方法
`v2`目录下的内容是用 vue 编写的。要调试它,你需要:
1. `cd` 到 `v2` 目录
2. 安装依赖
3. 由于你没有后端,所以你要把 `v2/.env.development` 里面的 API 域名都替换成 `v2/.env.production` 里的域名
4. 输入 `npm run dev` 启动开发服务器
5. 浏览器打开 `http://127.0.0.1:5173/` 会发现报错 404 ,实际上你需要打开 `http://127.0.0.1:5173/src/pages/xxxxxx/` 才能看到 `v2/src/pages/` 下的页面, 比如 `http://127.0.0.1:5173/src/pages/home/` 会显示首页