Git Product home page Git Product logo

payment-machine-srv_public's Introduction

硬件收银机api服务

使用koa、mysql,没啥好讲的。
要先申请支付宝支付api,配置好公私钥;该项目需要其私钥。

目录结构

payment-machine-srv_public
├── .eslintignore
├── .eslintrc.json
├── .gitignore
├── .npmrc
├── apidoc.json // 文档生成配置
├── doc // 文档生成目录, 不用直接干预这里边的文件
│   ├── vendor
│   ├── utils
│   ├── main.js
│   ├── locales
│   ├── index.html
│   ├── img
│   ├── fonts
│   ├── css
│   ├── api_project.json
│   ├── api_project.js
│   ├── api_data.json
│   └── api_data.js
├── env // 配置文件目录
│   ├── run.env
│   └── comm.env
├── init.sql // 表结构初始化sql
├── log // 日志目录
│   ├── log.log.2021-07-10
│   ├── log.log.2021-07-08
│   └── log.log
├── package-lock.json
├── package.json
├── README.md
├── scripts // 开发辅助脚本
│   ├── pre-push.js
│   ├── pre-commit.js
│   ├── init-githooks.js
│   └── comm.js
├── src
│   ├── utils
│   ├── services
│   ├── routers
│   ├── models
│   ├── middleware
│   └── app.mjs
└── upload // 上传文件存放目录
    └── -aAbyhbgUGYAf2Dnaym_htjy.png

开发

!!!需要先将配置好的支付宝api公私钥对的私钥放在该项目的根目录。
老规矩,先npm install 安装依赖.

  • 开发运行 npm run dev
  • 生成文档 npm run doc
  • 检查代码 npm run lint, 在commit代码的时候也会触发githook执行检查,不过不给提交。

配置

配置都在env目录里。

payment-machine-srv_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.