longr:Dockerized Node.js URL Shortner

时间:2021-06-29 20:19:39
【文件属性】:
文件名称:longr:Dockerized Node.js URL Shortner
文件大小:10KB
文件格式:ZIP
更新时间:2021-06-29 20:19:39
JavaScript Longr 是一个简单的 URL 缩短器,内置于 Node.js 中,并使用 SQLite3 作为后端。 Longr 的目标是提供一种将 URL 缩短服务添加到应用程序的简单方法,因此没有前端。 要开始超级简单,只需克隆这个 repo 并启动 Longr 运行。 git clone https://github.com/carsondarling/longr cd longr npm install --production npm start 在其默认配置中,Longr 为 SQLite 使用内存存储。 它还运行在端口 6430 上,所有 URL 都基于http://localhost:6430 。 您可以使用 cURL 测试 Longr: $ curl -i -X POST localhost:6430/?url=http://google.com/1236234 HTTP
【文件预览】:
longr-master
----.gitignore(18B)
----package.json(854B)
----LICENSE(1KB)
----index.js(780B)
----README.md(3KB)
----wercker.yml(515B)
----lib()
--------mangle.js(992B)
--------index.js(4KB)
--------startup.js(945B)
--------link.js(120B)
--------db.js(341B)
--------schema.js(526B)
----test()
--------mangle.js(2KB)
--------index.js(3KB)
--------mocha.opts(55B)

网友评论