Coder Social home page Coder Social logo

bubaishi-server's Introduction

okay-node-server

okay-node-server

|-- Api                              // Api接口层

* |   |-- ArticleApi.js              // 文章接口

* |   |-- SouceApi.js                // 指令接口


|-- bin                              // 项目开发环境配置

* |   |-- www                        // 运行脚本入口


|-- Controller                       // Controller层

* |   |-- BaseController.js          // base基类Model层同理

* |   |-- ArticleController.js       // 文章控制层

* |   |-- souceController.js         // 指令控制层


|-- data                             // 项目开发环境配置

* |   |-- db.js                      // 数据库配置文件

* |   |-- redis.js                   // Redis配置文件


|-- Model                            // Model层

* |   |-- BaseModel.js               // 同理Controller

* |   |-- ArticleModel.js            // 文章模块

* |   |-- souceModel.js              // 指令模块


|-- Public                           // 静态资源

* |   |-- views                      // 静态资源 按照模板层模块化打包


|-- routes                           // routes

* |   |-- index.js                   // 前端页面router


|-- viesw                            // 模板层

* |   |-- index                      // 按照模块化的功能页面

待更新的

1、Api和ViewController 应提供更深层次的模块/业务划分,index中应使用递归

2、集成redis配置、mysql配置

3、select update 等SQL方法封装

4、环境变量配置、一键安装功能

5、未集成前端自动化(待商议)

Build Setup

# start project
npm run start

QA: 1、

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.