rgreen312 / OwlPlace

https://rgreen312.github.io/OwlPlace/
5 stars 1 forks source link

backend: go module setup & simple api server #5

Closed gvacaliuc closed 5 years ago

gvacaliuc commented 5 years ago

This patch adds the structure for a simple go project as well as a very simple HTTP server.

build

(from the 'server' directory)

go build

run the server!

go run server.go

or

./server

make an api request

$ curl localhost:3000/hello
hello
gvacaliuc commented 5 years ago

The test in apiserver_test.go doesn't actually work, need to update that!