The canvas on which to paint your art
-
Implement a go HTTP server using gin
-
It should listen on /quotes and respond to GET with a single random quote
-
Those quotes should be from the following sites. Add a minimum of 5 and a maximum of 20.
-
The json response from your API should match this syntax.
{
"quote": "YOUR RANDOM QUOTE HERE",
"author": "Jessie Gorrell"
}
-
Your random quotes can be in memory, hard-coded, pulled in from a file, or in a database. We suggest starting with hard-coded to keep things simple.
-
Ensure you are authed against GCP
gcloud auth login
- Ensure you have set your active project
gcloud config set project name-apprentice
- Deploy your service to cloud run by running and following the prompts. Name your service FIRSTNAME-service
gcloud run deploy