Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koopjs/koop-provider-arcgis-search
Search for ArcGIS Online and Portal
https://github.com/koopjs/koop-provider-arcgis-search
koop-provider
Last synced: about 1 month ago
JSON representation
Search for ArcGIS Online and Portal
- Host: GitHub
- URL: https://github.com/koopjs/koop-provider-arcgis-search
- Owner: koopjs
- License: other
- Created: 2017-09-03T00:16:30.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-22T16:27:15.000Z (over 1 year ago)
- Last Synced: 2024-04-25T17:05:34.224Z (8 months ago)
- Topics: koop-provider
- Language: JavaScript
- Homepage:
- Size: 746 KB
- Stars: 0
- Watchers: 8
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Koop Provider for ArcGIS Search
![Coverage](./coverage.svg)Provides a GeoService API to ArcGIS Search for Online and Portal
Build your own Koop provider using [koop-provider-sample](https://github.com/koopjs/koop-provider-sample) or [docs](https://koopjs.github.io/docs/specs/provider/).
## Test it out
Run server:
- `npm install`
- `npm start`Example API Query:
- `curl localhost:8080/arcgis-search/FeatureServer/0/query?returnCountOnly=true`Tests:
- `npm test`### Development output callstack logs
During development you can output error callstack with
- `NODE_ENV=test npm start`
## Deploy to AWS Lambda
Koop providers can be quickly deployed and scaled with AWS Lambda. To first create the service:
- `npm run lambda-create`
To deploy code updates
- `npm run lambda-update`
### AWS Lambda configuration
By default, AWS Lambda has a 3 second timeout and only 128MB memory. If your Koop provider uses a slower service, then you should change the AWS Lambda timeout to a higher time limit (e.g. 60 seconds) as well as add more memory (e.g. 512MB).
## With Docker
- `docker build -t koop-provider-arcgis-search .`
- `docker run -it -p 8080:8080 koop-provider-arcgis-search`## Publish to npm
- run `npm init` and update the fields
- Choose a name like `koop-provider-foo`
- run `npm publish`