8000 GitHub - wtkm11/stateserver: (job application coding challenge - 2018) [Python Falcon Shapely Docker]
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wtkm11/stateserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

State Server!

How to run with Docker

  1. Navigate to the project root directory (the directory with the Dockerfile) and build an image.

    $ docker build -t stateserver:latest .
    
  2. Start a container with stateserver running inside it. Expose port 8080.

    $ docker run -d -p 8080:8080 stateserver
    
  3. Post a latitude and longitude to / find out which state it is in.

    $ curl -d "longitude=-77.036133&latitude=40.513799" http://localhost:8080/
    ["Pennsylvania"]
    

About

(job application coding challenge - 2018) [Python Falcon Shapely Docker]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0