GithubHelp home page GithubHelp logo

star945 / payment-machine-device_public Goto Github PK

View Code? Open in Web Editor NEW

This project forked from code4freeman/payment-machine-device_public

0.0 0.0 0.0 662 KB

硬件收银机端软件实现

JavaScript 84.52% CSS 3.56% HTML 1.56% Less 10.37%

payment-machine-device_public's Introduction

收银机硬件端

使用Electron、React、Redux、React-Router 实现。
前期使用nwjs开发,因nwjs arm版本的一些硬核问题不好解决,最后运行在硬件上使用了electron。

目录结构

payment-machine-device_public
├── .gitignore
├── build
│   ├── production.js
│   ├── development.js
│   └── base.js
├── env // 配置文件目录
│   ├── production.env
│   ├── mock.env
│   ├── development.env
│   └── base.env
├── mock // 接口数据模拟,可以穿过mock直达服务,起到监看传参。
│   ├── testServer.js
│   ├── index.js
│   └── api
├── package-lock.json
├── package.json
├── README.md
├── scripts // 一些构建相关脚本
│   ├── util.js
│   ├── start-electron.js
│   └── run-electron.js
└── src
    ├── store
    ├── router
    ├── pages
    ├── lib
    ├── index.js
    ├── index.html
    ├── asstes
    └── api

开发启动

!!! 注意,该项目一直在armv7板子上进行测试开发,若运行在mac、windows、linuxX86 等平台可能会报很多错误(因为里边硬件相关操作库会报错,您也可以把这些硬件相关代码剔除就可以了)。

老规矩,npm install 安装全部依赖。
然后根据目的执行以下命令:

  • 开发:npm run dev
  • 开发(启动mock服务)npm run dev-mock
  • 打包 npm run build

配置

配置都在env文件夹里边。

payment-machine-device_public's People

Contributors

code4freeman avatar

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.