This project is tested on a Go 1.10 but it may work on previous versions of Go starting 1.6
- Run terminal and execute
git clone https://github.com/rrborja/state-server
- Enter the cloned project's main directory and execute
go build
- At this point, you must have the compiled executable
state-server
if you're on a UNIX-based OS.
- Run terminal and execute
git clone https://github.com/rrborja/state-server
- Enter the cloned project's main directory
- Execute
go run main.go
- Run terminal and execute
go run https://github.com/rrborja/state-server
- Execute
state-server
If you have installed the state-server through Option 1, you can perform:
- If you are still in the working directory after Option 1, then in your terminal, run
./state-server &
- Test the state server by checking if the given point is within Pennsylvania land by running
curl -d "longitude=-77.036133&latitude=40.513799" http://localhost:8080/
while still in your current working directory - You should expect an output
["Pennsylvania"]