源码运行
下载源代码
bash
git clone https://gitee.com/psoho/fast-poster.git
git clone https://gitee.com/psoho/fast-poster.git
bash
git clone https://github.com/psoho/fast-poster.git
git clone https://github.com/psoho/fast-poster.git
Python版本说明
推荐使用Python3.9+
,如果低于3.7
,需要在requirements.txt
文件中调整响应的Pillow
依赖版本
Python | 3.10 | 3.9 | 3.8 | 3.7 | 3.6 |
---|---|---|---|---|---|
Pillow >= 9.0 | Yes | Yes | Yes | Yes | |
Pillow 8.3.2 - 8.4 | Yes | Yes | Yes | Yes | Yes |
安装后端依赖
提示
需要先进入server
目录,然后执行以下命令。
bash
pip install -r requirements.txt
pip install -r requirements.txt
bash
pip install -r requirements.txt \
-i https://pypi.tuna.tsinghua.edu.cn/simple \
--trusted-host pypi.tuna.tsinghua.edu.cn
pip install -r requirements.txt \
-i https://pypi.tuna.tsinghua.edu.cn/simple \
--trusted-host pypi.tuna.tsinghua.edu.cn
启动服务
bash
python fast.py -t ApfrIzxCoK1DwNZOEJCwlrnv6QZ0PCdv
python fast.py -t ApfrIzxCoK1DwNZOEJCwlrnv6QZ0PCdv
启动成功
bash
__ _ _
/ _| | | | |
| |_ __ _ ___ | |_ _ __ ___ ___ | |_ ___ _ __
| _| / _` |/ __|| __|| '_ \ / _ \ / __|| __| / _ \| '__|
| | | (_| |\__ \| |_ | |_) || (_) |\__ \| |_ | __/| |
|_| \__,_||___/ \__|| .__/ \___/ |___/ \__| \___||_|
| |
|_|
fastposter(v2.19.0)
https://fastposter.net/doc/
Listening at http://127.0.0.1:5000/
__ _ _
/ _| | | | |
| |_ __ _ ___ | |_ _ __ ___ ___ | |_ ___ _ __
| _| / _` |/ __|| __|| '_ \ / _ \ / __|| __| / _ \| '__|
| | | (_| |\__ \| |_ | |_) || (_) |\__ \| |_ | __/| |
|_| \__,_||___/ \__|| .__/ \___/ |___/ \__| \___||_|
| |
|_|
fastposter(v2.19.0)
https://fastposter.net/doc/
Listening at http://127.0.0.1:5000/
打开海报编辑器http://127.0.0.1:5000/
安装前端依赖
如需前端源代码,请先获取专业版
提示
先进入design
目录,然后执行以下命令。
推荐使用 node v16.14.0
bash
npm i
npm i
启动前端
bash
npm run serve
npm run serve
运行没有问题,开启你的魔改快乐之旅吧。http://127.0.0.1:8080/
html
http://localhost:8080/
http://localhost:8080/