Backend REST APIs service built with Go to support API functionalities for Splitter application.
- Go - Go programming language
- Gin - Go web framework to build HTTP servers
- Gorm - ORM library for Go
- Postgres - Popular open-source SQL RDBMS
- Docker - Develop, ship, and run your app with containers
NOTE: instructions for running with Docker will be added in the future
-
Install Go
Make sure Go 1.16 or above is installed on your machine. Visit Go download page to download or install using Homebrew.
brew install go
-
Install Dependencies
go mod download
-
Run the app
go run .
Run unit tests on the app
go test
Database structure can be access here
Running the database on your machine using Docker Compose.
docker compose up -d postgres