Skip to content

maqi1520/clone-processon

Repository files navigation

Clone processon

NodeJS 版在线流程图,模仿 https://www.processon.com/

本项目仅供学习使用

技术栈

部署

  • 没有装 postgresql 可以使用 docker-compose.yml 启一个容器服务
docker-compose up -d
  • 复制 .env.example 命名为 .env
# 数据库链接地址
DATABASE_URL="postgresql://admin:example@localhost:5432/pro?schema=public"

# JWT 秘钥
JWT_SECRET="JWT_SECRET"

# 邮箱验证
# 返回域名
DOMAIN="http://localhost:3000"
# 邮箱
EMAIL_USER="[email protected]"
# 邮件发送人
EMAIL_USER_NAME="狂奔的小马"

# 邮件smtp
EMAIL_HOST="smtp.163.com"
# smtp 密码 并非邮箱密码,在邮箱设置中申请
EMAIL_PASS="xxxxxx"
# github oauth 参数
GITHUB_CLIENT_ID="xxxxxxxxxx"
GITHUB_CLIENT_SECRET="xxxxxxxxx"
  • 安装依赖
yarn install
  • 打包
yarn build
  • 启动
yarn start

TODO

  • ✅ 支持 POS 文件导入
  • websocket 多人同步编辑
  • 文件上传
  • 生成缩略图
  • ✅ 分享页面

联系

备注来源

image.png

我的微信公众号

定位前端工程师进阶

image.png