The REST API is written in Golang with the Gin web framework and the Gorm ORM library.
We are using PostgreSQL for the database, with the pq Postgres driver for Go.
The db folder contains snippets for setting up the database and tables.
We are using Postman to create and run API tests. The tests can also be run with NodeJS.
$ npm install follow-redirects
$ node <test_name>.js
Fetch and install golang packages:
go get github.com/gin-gonic/gin
go get github.com/jinzhu/gorm
go get github.com/lib/pq
go install github.com/gin-gonic/gin github.com/jinzhu/gorm github.com/lib/pq
Build and install this package:
go build main.go
go install main.go
API: the golang REST API is deployed using Google App Engine
Database: the data is stored in a PostgreSQL database hosted on Google Cloud SQL for PostgreSQL