【文件属性】:
文件名称:location:位置微服务节点实验
文件大小:4KB
文件格式:ZIP
更新时间:2021-05-06 18:16:45
JavaScript
位置微服务
用于在地理位置上定位IP地址的微型服务。 为了学习Node.js而创建的。 依靠。
样本
// GET /ips/8.8.8.8
{
host : "8.8.8.8" ,
country : {
iso_code : "US" ,
geoname_id : 6252001 ,
name : "United States"
}
}
入门
安装:
git clone https://github.com/manuelmorales/location.git
cd location
npm install
grunt bootstrap # Will download the database
检查一切是否井井有条:
grunt test
运行服务器:
node app.js
执照
根据MIT许可证发布。 有关更多详细信息,请参见文件。
【文件预览】:
location-master
----.gitignore(20B)
----app.js(227B)
----package.json(933B)
----Gruntfile.js(992B)
----LICENSE.txt(1KB)
----README.md(739B)
----lib()
--------location.js(608B)
----test()
--------integration.js(2KB)