Livid
403.84D
562.95D
V2EX  ›  Node.js

关于 Node.js 项目的代码组织方式,推荐一个值得学习的项目吧?

  •  
  •   Livid ·
    PRO
    · Sep 4, 2013 · 9594 views
    This topic created in 4809 days ago, the information mentioned may be changed or developed.
    17 replies  •  1970-01-01 08:00:00 +08:00
    ijse
    ijse
    Sep 4, 2013❤️1
    1
    最近也在想这个,grunt-init-node 可以生成一个基本的框架

    另外,有关网站的,在网上有找到这个: https://github.com/jifeng/node-app 有些可借鉴学习的。
    ywencn
    ywencn
    Sep 4, 2013
    2
    我一直是按着rails的路子来的。。。
    Numbcoder
    Numbcoder
    Sep 4, 2013❤️4
    3
    如果是 web 项目的话,可以参考这个 https://github.com/madhums/node-express-mongoose-demo
    其他的项目,参考 npm 包的格式,`npm init`
    zhttty
    zhttty
    Sep 4, 2013
    4
    |--package.json
    |--app.js
    |--README.md
    |--config.js
    |--path
    |---bin
    |--*.sh
    |--*.bin
    |--*.js
    |--...
    |---lib
    |---view
    |---main
    |---css
    |---js
    |---doc
    |---man
    |---others
    |---licenses
    |---test
    |---demo
    |---debug
    zhttty
    zhttty
    Sep 4, 2013
    5
    [email protected]:kellyschurz/nodejsTemplate.git

    4L竟然忽略了首空格...
    xinyu198736
    xinyu198736
    Sep 4, 2013
    6
    推荐个自己的项目:https://github.com/xinyu198736/htmljs
    只看看代码就好了,没有配置文件,这个项目clone下来跑不起来。
    whuhacker
    whuhacker
    Sep 4, 2013
    7
    spark
    spark
    Sep 4, 2013
    8
    试试 Yeoman
    summic
    summic
    Sep 4, 2013
    10
    @whuhacker nodeclub 的 eventproxy 看得我蛋疼啊
    robertlyc
    robertlyc
    Sep 4, 2013
    11
    一般按照rails的方式来
    willerce
    willerce
    Sep 4, 2013
    13
    如果是WEB项目,可以参考 http://sailsjs.org/ 这个框架。

    Sails.js make it easy to build custom, enterprise-grade Node.js apps. It is designed to mimic the MVC pattern of frameworks like Ruby on Rails,
    hfcorriez
    hfcorriez
    Sep 4, 2013
    14
    推荐 mean.io和yeoman
    ijse
    ijse
    Sep 5, 2013
    15
    @sxd 这个貌似好久没更新了,看到所用到的一些包版本都很低。。
    sxd
    sxd
    Sep 5, 2013
    16
    @ijse 推荐是因为他是 jetbrain 的默认模板 应该有其优点才会被默认吧.
    agassi_yzh
    agassi_yzh
    Sep 5, 2013
    17
    yeoman生成一个
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2404 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 57ms · UTC 15:40 · PVG 23:40 · LAX 07:40 · JFK 10:40
    ♥ Do have faith in what you're doing.