October '18 GCP Hack Week - Back End!
go run main.go
docker build -t octohack-back .
docker run -d -p 8080:8080 octochack-back
The server will run on http://localhost:8080/
by default.
GET /users/:username
{
"id": 1,
"username": "user",
"email": "[email protected]"
}
POST /users
with:
{
"username": "user",
"email": "[email protected]"
}