Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mabc224/782-ab
https://github.com/mabc224/782-ab
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mabc224/782-ab
- Owner: mabc224
- Created: 2015-09-09T18:22:02.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-09-28T22:43:20.000Z (about 9 years ago)
- Last Synced: 2023-03-01T17:47:04.952Z (almost 2 years ago)
- Language: JavaScript
- Size: 152 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 782-AB
Here is the procedure to use it.
First install dependencies by using command
```sh
npm install
```
in root dir of this app.To execute the server, execute command
```sh
node bin/www
```
It will start localhost server on 3000 port.This url will insert fake data;
```sh
http://localhost:3000
```You can see inserted data here;
```sh
http://localhost:3000/data
```You can query data by lat, lng
```sh
http://localhost:3000/channels?l=,
http://localhost:3000/channels?l=-142.2452,-12.5151
```You can query data by ip
```sh
http://localhost:3000/channels?l=
http://localhost:3000/channels?l=172.168.0.1
```In case of this passed, it will try to collect user ip, and try to find location by matching ip in database, if found, channel will return
```sh
http://localhost:3000/channels
```