Golang server that manages API keys for authenticated users
First download the dependencies:
export GOPATH="..."
go get github.com/gorilla/handlers
go get github.com/gorilla/mux
go install
Then run the main package:
keyauth
Access the server from port 3000 using your client of choice.
The server was tested at the following key endpoints:
/
/health/
/api/apikey/
More endpoints can be tested in the future. To run the suite:
go test
Some things to consider:
- Closely resembles the folder structure here
- Currently does not use database connections
- Uses a fake data structure to act as a database
- CORS is properly enabled for the API