我目前正在尝试使用 Botkit 框架创建一个 Messenger Bot!
由于我在不同的计算机上工作,我想使用 docker 来防止任何本地配置问题。
不幸的是,我是 botkit 和 docker 的新手。
bot
??? README.md
??? docker
? ??? botkit
? ? ??? Dockerfile
? ??? node
? ??? Dockerfile
??? docker-compose.yml
??? node_modules
??? package.json
4 directories, 5 files
Run Code Online (Sandbox Code Playgroud)
version: "2"
services:
node:
build: ./docker/node
volumes_from:
- "app"
botkit:
build: ./docker/botkit
links:
- "node"
volumes_from:
- "app"
app:
image: "node:8"
working_dir: /home/nook_bot
environment:
- NODE_ENV=production
volumes:
- .:/home/nook_bot
- /home/nook_bot/node_modules
command: "npm init --yes && npm …
Run Code Online (Sandbox Code Playgroud) I am having great trouble with this. I am building a little API to get the closest stored elements (in a mlab MongoDB) given specific coordinates.
\n\nI want to get the closest elements from my DB using Mongo custom query tools like $near.
\n\nYou can find the original repo here!
\n\nThe original data is a little .csv that I converted to geojson format.
\n\nHere is a short version of that .csv:
\n\n …