Skip to content
forked from jifeng/node-app

nodejs web项目的目录结构

Notifications You must be signed in to change notification settings

llearn/node-app

This branch is up to date with jifeng/node-app:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

98ea0a9 · Nov 27, 2012

History

3 Commits
Nov 27, 2012
Nov 27, 2012
Nov 27, 2012
Nov 23, 2012
Nov 27, 2012
Nov 27, 2012
Nov 23, 2012
Nov 23, 2012
Nov 23, 2012
Nov 23, 2012
Nov 23, 2012
Nov 23, 2012

Repository files navigation

node-app

nodejs web项目的目录结构

代码目录结构

  • /
  • dispatch.js 主进程文件
  • worker.js 工作进程
  • app.js 应用
  • routes.js url路由表
  • package.json 依赖模块
  • config.js or config/ 配置文件
  • controllers/ 业务逻辑相关
  • views/ 试图模板
  • common/ 跟业务相关的公共模块
  • proxy/ 数据访问代理层
  • lib/ 跟业务无关的公共模块
  • assets/ images|scripts|styles
  • test/ 测试
  • bin/ 相关运行脚本
  • node_moudules

About

nodejs web项目的目录结构

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%