Skip to content

源码运行

下载源代码

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依赖版本

Python3.103.93.83.73.6
Pillow >= 9.0YesYesYesYes
Pillow 8.3.2 - 8.4YesYesYesYesYes

安装后端依赖

提示

需要先进入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

image-20211123163355627

运行没有问题,开启你的魔改快乐之旅吧。http://127.0.0.1:8080/

html
http://localhost:8080/
http://localhost:8080/