Skip to content

Latest commit

 

History

History
60 lines (30 loc) · 1.19 KB

File metadata and controls

60 lines (30 loc) · 1.19 KB

Act.Up Backend

API

The REST API is written in Golang with the Gin web framework and the Gorm ORM library.

Database

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.

Tests

We are using Postman to create and run API tests. The tests can also be run with NodeJS.

Install NodeJS Testing Dependencies

$ npm install follow-redirects

$ node <test_name>.js

Installation

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

TODO update documentation

Google Cloud Infrastructure Setup

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