state-boundries

command module
v0.0.0-...-e1300c2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2021 License: MIT Imports: 5 Imported by: 0

README

State Boundries

RESTful API written in Go for finding out which states border which.

Utilizes the gorilla/mux package for routing and a few built-in Go packages.

Live Server

This project has been deployed on Heroku. If you use visit https://state-boundries.herokuapp.com/api/borders/, it will GET the list of all 50 states and the states that they share a border with.

Installation & Testing locally

Make sure that you have the latest version of Go installed on your machine.

You can clone this repository, install the requisite dependencies and run it on your machine like so:

$ git clone https://github.com/J-Obog/state-boundries.git
$ cd state-boundries
$ go install
$ go run .

Endpoints

GET /api/borders/:state - Get the a specific state and the states that border it

GET /api/borders/ - Get all states and their borders

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL