Skip to content

Kieran-Lynn/state-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

State Server

This node app takes in two coordinates and finds what state those coordinates are in. It reads the state coordinate boundries from states.json.

Clone this repo and then install all dependencies with:

npm install

Start the server:

npm start

Once the app is running call with a curl command:

curl  -d "longitude=-77.036133&latitude=40.513799" http://localhost:8080/

A JSON object containing the state will be output.

Run all tests:

npm test

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published