Code Monkey home page Code Monkey logo

gymbook2.0-backend's Introduction

GymBook2.0-backend

后端

项目模块

数据库

数据库定义看 model, 如有特殊的需要解释的数据库model 请看 database.md

运行

推荐使用webstorm

  1. npm install
  2. 在model/sync/下执行 所有的 init-*.js (node init-gym.js ...等等)
  3. node app.js 或者 调试debug webstorm

项目结构

  • app.js 主入口
  • app 项目主目录
    • control 控制层
    • model 数据库model层
    • route-list 路由层
      • middleware 中间件
    • unit 工具件
    • route.js 路由入口文件
  • conf 配置文件

接口定义

总体形式为

{
    code: 1     // 只有1为请求成功 其他值需要额外处理
    msg:  'ok'  // 描述信息
    data: {} // 具体data
}


gymbook2.0-backend's People

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.