This is for fun and learn. Trying to build REST API based on golang, and compare it with Django and Express. Not finished.
https://thenewstack.io/make-a-restful-json-api-go/
Add DB. Add logic to generate ramdom code. Refactor codes into several files. Now not necessary, too few codes.
Set GOPATH and GOBIN in .bashrc
Run go get to install dependencies.
Run go run main.go to run the server.
Run mongod to start standalone mongod instance for dev/testing.