Giter VIP home page Giter VIP logo

imageweb's Introduction

介绍

ImageWeb是一个旨在将桌面端的图像处理软件ImagePy迁移到web上的项目(web前端页面由kaibu驱动),使得用户无需配置复杂的环境、仅需一个浏览器即可进行复杂的图像处理操作。

试用地址

试用地址在这里,(该试用app通过Heroku免费版部署;由于免费版限制为30分钟内无访问则休眠,所以如果菜单未及时加载,请耐心等待约16秒~~此处欢迎服务器资源赞助😃)。

案例

如下是硬币分割的一个案例录像: mov

启动后端

进入backend文件夹:

uvicorn main:app --port 5000

启动前端

进入frontend文件夹:

cd frontend

安装依赖

npm install

启动(开发阶段)

如果是开发阶段,则使用如下命令:

npm run serve

然后在浏览器中输入地址:

http://localhost:8080/

启动(生产阶段)

开发结束后,使用如下命令对前端代码进行打包压缩:

npm run build

该命令会生成dist文件夹,里面放置了前端所需的htmlcssjs文件及图片等静态文件。

得到该文件夹后,后续就无需再使用nodejsnpm install这一步。

对于这些页面,需要启动一个服务器来托管它们。

简单地,可以使用python内置的一个测试服务器来查看效果。可以查看该教程。 进入dist文件夹,然后:

python -m http.server 8081

或者更专业地,使用nginx反向代理服务器,可以查看该教程。 对nginx配置文件修改listen端口号(假设为8081)和location(即dist文件夹所在位置)后,启动服务:

start nginx

然后在浏览器中输入地址:

http://localhost:8081/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.