備注:
項目使用的是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/