【文件属性】:
文件名称:hvv-rest:汉堡公共交通的HTTP API
文件大小:17KB
文件格式:ZIP
更新时间:2021-05-23 20:57:11
transit api hamburg public-transport hvv
休息
hvv-rest是一种公共交通REST API ,是的干净替代方案。 它部署在 。
安装和运行
hvv-rest期望服务器在127.0.0.1:6379 (默认端口)上运行,但是您可以设置REDIS_URL环境变量来更改此设置。
通过Docker
Docker映像 。
docker run -d -p 3000:3000 derhuerst/hvv-rest:5
注意: Docker映像不包含Redis服务器。
手动地
git clone https://github.com/derhuerst/hvv-rest.git
cd hvv-rest
git checkout 5
npm install --production
redis-server &
npm start
为了保持API永久运行,使用的工具,像 , pm2或systemd 。
相关项目
db-rest –干
【文件预览】:
hvv-rest-5
----Dockerfile(454B)
----.gitignore(144B)
----license.md(727B)
----docs()
--------api.md(18KB)
--------getting-started.md(7KB)
--------readme.md(2KB)
----.dockerignore(18B)
----package.json(1KB)
----architecture.svg(2KB)
----readme.md(3KB)
----index.js(238B)
----.editorconfig(216B)
----api.js(2KB)
----api-docs.js(9KB)