Giter VIP home page Giter VIP logo

quakesearch-go-old's Introduction

GeoNet Quake Search

Provide web service to search the GeoNet quake catalog

Development

Application is developed in GO

Database

This application searches data on the GeoNet wfs database (will be changed to GeoNet HAZ database)

Web service api

Restful web service for search quakes in difference format( geojson, gml, kml, csv) query parameters: date, location, depth/magnitude

Interactive web interface

  • use interactive map to define search area
  • update coordinates by map extent when "Map Extent" selected as default
  • allows building search query as well as showing search results on interactive map
  • number of quakes to show on map limited to 2000.
  • output format currently (query builder): geojson, gml, kml, csv.
  • result as url(s) for intended data, also button to download data from browser.
  • the maximum number of quakes for each request is limited to 20,000 (to prevent server crash), beyond that multiple requests are suggested.

Test

init test database

cd test_db
./initdb.sh

Run test

godep go test

Build / Deployment

Configuration

config parameters can be specified in quakesearch.json which can be copied to /etc/sysconfig/

config parameters can also be specified as environment variables which will overwrite the above config file, see docker-run.sh

GO

godep go build
./quakesearch

Docker

sudo docker build  -t 'quakesearch_go' .
sudo docker run --name quakesearch_go -p 8080:8080 -e "QUAKESEARCH_WEB_SERVER_PORT=8080" -e "QUAKESEARCH_DATABASE_HOST=localhost"  -e "QUAKESEARCH_DATABASE_NAME=hazard" -e "QUAKESEARCH_DATABASE_USER=####" -e "QUAKESEARCH_DATABASE_PASSWORD=####" -i -d -t quakesearch_go
sudo docker stop/start quakesearch_go

quakesearch-go-old's People

Contributors

bpeng avatar junghao avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.