Coder Social home page Coder Social logo

api-server's Introduction

项目整体文件说明

  • config 配置文件目录
    • default.json 默认配置文件(其中包含数据库配置,jwt配置)
  • dao 数据访问层,存放对数据库的增删改查操作
    • DAO.js 提供的公共访问数据库的方法
  • models 存放具体数据库 ORM 模型文件
  • modules 当前项目模块
    • authorization.js API权限验证模块
    • database.js 数据库模块(数据库加载基于 nodejs-orm2 库加载)
    • passport.js 基于 passport 模块的登录搭建
    • resextra.js API 统一返回结果接口
  • node_modules 项目依赖的第三方模块
  • routes 统一路由
    • api 提供 api 接口
    • mapp 提供移动APP界面
    • mweb 提供移动web站点
  • services 服务层,业务逻辑代码在这一层编写,通过不同的接口获取的数据转换成统一的前端所需要的数据
  • app.js 主项目入口文件
  • package.json 项目配置文件

api-server's People

Watchers

 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.