This repository has been archived on 2026-02-03. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
v1-frontend/README.md
2025-10-20 21:15:28 +08:00

127 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
A simple anonymous post website awa!
## 快速开始~
0、Clone本仓库
`git clone https://github.com/Sycamore-Whisper/frontend.git`
1、安装node依赖
`pnpm install`
2、修改配置
找到/src/config.ts根据注释配置后端信息和变量
接下来,找到/public/icon.png将其替换为你自己的图标
最后,找到/public/about.md填入自己的关于信息
配置完成!
3、构建静态文件
`pnpm build`
生成出的静态文件在/dist目录下将其上传到静态网页托管服务商或者自己的服务器上
接下来配置SPA路由回退
```nginx
# Nginx/OpenResty
location / {
try_files $uri $uri/ /index.html;
}
```
```nginx
# Apache - .htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule . /index.html [L]
</IfModule>
```
4、初始化后端
打开前端,会自动跳转至/init以便配置后端参数
部署完成owo。
5、管理页面
前往/admin输入初始化时设置的token即可
`python api\_server.py`
后端API已部署完成喵接下来请调用/init接口进行初始化
## TODO
目前收到的几个建议:
1、开设不同讨论板块
## License
This project is licensed under the MIT License.