Git Product home page Git Product logo

wms's Introduction

WMS(货物管理系统)


学习Flask全文搜索的练手Demo,基于Jieba和flask_whooshalchemyplus来做分词和搜索

  • 效果图 Alt text
  • API:

    • ['GET', 'POST'] 127.0.0.1:5000/api/v1.0/ 获取和添加货物
    • ['GET'] 127.0.0.1:5000/api/v1.0/filter?t=&f= 根据需求筛选
      • : t是筛选类型,f是参数
      • t-> price,stock,storage_time,storage_location
      • f-> t为前三者的时候f为范围值(例如:"100to500"),f为库存地的时候t为地点(例如:"北京")
    • ['GET'] 127.0.0.1:5000/api/v1.0/search?q= 根据关键字 q 进行全文搜索,中英文皆可
    • ['POST'] 127.0.0.1:5000/api/v1.0/spiders 启动爬虫获取某宝商品信息拿过来做数据源
      • post参数为 q ,随意搜索任何内容,返回12条内容(api中的s参数为页数,可修改然后循环爬取,我的是固定的)
  • 通过post提交的数据包括爬虫获取的数据都能被 flask_whooshalchemyplus 建立起所选字段的索引


TODO :

  • 前端界面的完善[vue + element-ui]
  • 参考真的WMS来完善这个货物管理系统

wms's People

Contributors

beanwei avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

t110e4 johamwon

wms's Issues

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.