ArangoDB Foxx service 使用
生活随笔
收集整理的這篇文章主要介紹了
ArangoDB Foxx service 使用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
備注: 項目使用的是github?https://github.com/arangodb-foxx/demo-hello-foxx 1. git clone git clone https://github.com/arangodb-foxx/demo-hello-foxx.git 2. 安裝foxx service foxx-manager install demo-hello-foxx /demoapp 3. 效果 自動生成的swagger 文檔 項目相關的幫助文檔 簡單測試 4. 項目代碼說明 a. manifest.json"main": "index.js", // 入口"defaultDocument": "index.html", // 文檔"contributors": [{ "name": "luebbert42" },{ "name": "Alan Plum" }],"scripts": {"setup": "scripts/setup.js", // 初始化"teardown": "scripts/teardown.js" // 卸載資源清理},"files": {"/": "files" // 文檔目錄說明},"lib": "."b. index.js (模塊的引用)
module.context.use('/', require('./app.js'));c. app.js (主要接口操作)統一通過一個executeSourceCode 方法執行js 代碼 5. 參考文檔 https://github.com/arangodb-foxx/demo-hello-foxx
https://docs.arangodb.com/3.2/Foxx/
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎
總結
以上是生活随笔為你收集整理的ArangoDB Foxx service 使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 梦到大水向自己冲过来是什么兆头
- 下一篇: iOS-FMDB