i5ting / imove

INACTIVE: Move your mouse, generate code from flow chart
https://www.yuque.com/imove/docs/hvu0md
MIT License
3.75k stars 343 forks source link

add online example #51

Closed i5ting closed 3 years ago

i5ting commented 3 years ago

朋友反馈

现在最大的问题还是本地跑example不友好。 或者可以部署一个在线的应用给大家访问

解法是:umi build将example打包,然后使用 https://github.com/tschaub/gh-pages 发布example/dist到git pages就好了

i5ting commented 3 years ago

https://github.com/imgcook/imove/tree/online-example , 目前能够生产,但路径和mock/db.json还有问题,需要调试

i5ting commented 3 years ago

目标路径 https://imgcook.github.io/imove/

T1Kingu commented 3 years ago

ok

i5ting commented 3 years ago

use codesandbox preview: https://utu9d.sse.codesandbox.io

i5ting commented 3 years ago

fork https://codesandbox.io/s/github/imgcook/imove/tree/online-example

i5ting commented 3 years ago

add sandbox.config.json

{
    "template": "node",
    "container": {
      "port": 8000
    }
  }
i5ting commented 3 years ago

https://img.shields.io/static/v1?label=Online&message=Example&color=blueviolet

image

i5ting commented 3 years ago