Skip to content

Latest commit

 

History

History
31 lines (16 loc) · 692 Bytes

README.md

File metadata and controls

31 lines (16 loc) · 692 Bytes

mstock-api

How to use

First of all, you need to have Golang installed. If you need help with this, you can check these docs.

Running the server

Build the executable:

go build main.go

Run it:

./main

Using the online service

Run:

alias gcurl='curl --header "Authorization: Bearer $(gcloud auth print-identity-token)"'

To locally run and test docker image

Install docker and run

PORT=8080 docker build --tag mstock .

To build and a deploy a new container without having to trigger a new build

gcloud builds submit . --config ./ci/cloudbuild.yaml --substitutions=COMMIT_SHA="[something here]"