<kbd id="afajh"><form id="afajh"></form></kbd>
<strong id="afajh"><dl id="afajh"></dl></strong>
    <del id="afajh"><form id="afajh"></form></del>
        1. <th id="afajh"><progress id="afajh"></progress></th>
          <b id="afajh"><abbr id="afajh"></abbr></b>
          <th id="afajh"><progress id="afajh"></progress></th>

          CandyJs高性能 Node 框架

          聯(lián)合創(chuàng)作 · 2023-09-19 11:24

          CandyJs 是一款面向?qū)ο?、用于開發(fā) Web 應(yīng)用的高性能 Node 開發(fā)框架,最早寫于2017年。它不是第三方框架的集成,而是一個(gè)全新的框架。

          系統(tǒng)內(nèi)置別名

          • @candy 系統(tǒng)目錄

          • @app 項(xiàng)目目錄 由 appPath 指定 CandyJs.Candy.app.getAppPath() 可得到該值

          • @runtime 緩存目錄 默認(rèn)指向 @app/runtime CandyJs.Candy.app.getRuntimePath() 可得到該值

          • @root 網(wǎng)站根目錄 CandyJs.Candy.app.getRootPath() 可得到該值

          項(xiàng)目目錄示例

          |- index.js
          |
          |- node_modules 目錄
          |
          |- public 目錄
          |
          |- app 項(xiàng)目目錄
          |  |
          |  |-- apis
          |  |
          |  |-- controllers 普通控制器目錄
          |      |
          |      |-- user 用戶組目錄
          |      |   |
          |      |   |-- IndexController.js  - host:port/user/index 可以訪問到該類
          |      |   |-- OtherController.js  - host:port/user/other 可以訪問到該類
          |      |
          |      |-- goods 商品組目錄
          |      |   |
          |      |   |-- IndexController.js  - host:port/goods/index 可以訪問到該類
          |      |   |-- OtherController.js  - host:port/goods/other 可以訪問到該類
          |      |
          |   -- views 普通控制器模板目錄
          |      |
          |      |-- user 用戶組模板 對(duì)應(yīng)上面用戶組
          |      |   |
          |      |   |-- index.html
          |      |   |-- other.html
          |      |
          |   -- goods 商品組模板
          |      |   |
          |      |   |-- index.html
          |      |   |-- other.html
          |      |
          |   -- modules 模塊
          |      |
          |      |-- reg
          |      |   |
          |      |   |-- controllers 模塊控制器目錄 其下無子目錄
          |      |   |   |
          |      |   |   |-- IndexController.js
          |      |   |
          |      |   |-- views 模塊模板目錄
          |      |   |   |
          |      |   |   |-- index.html
          |      |   |
          |      |   |-- 其他目錄
          |      |
          |   -- runtime 緩存目錄
          |
          瀏覽 8
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          評(píng)論
          圖片
          表情
          推薦
          點(diǎn)贊
          評(píng)論
          收藏
          分享

          手機(jī)掃一掃分享

          編輯 分享
          舉報(bào)
          <kbd id="afajh"><form id="afajh"></form></kbd>
          <strong id="afajh"><dl id="afajh"></dl></strong>
            <del id="afajh"><form id="afajh"></form></del>
                1. <th id="afajh"><progress id="afajh"></progress></th>
                  <b id="afajh"><abbr id="afajh"></abbr></b>
                  <th id="afajh"><progress id="afajh"></progress></th>
                  俺去俺也去88 | 天天舔天天爱天天干 | 国产精品久久久久老师 | 免费大免费黄在线 | 日韩深喉在线视频 |