Yarn Swap is a Progressive Web Application where crafters can list and view yarns and can swap or procure yarns from others that could otherwise be forgotten or wasted. This project is the backend API for the Yarn Swap application.
- Golang
- Gin Web Framework
- Firebase (Auth, Realtime Database, Storage)
- Red Hat OpenShift Cluster: http://yarnswap-yarn-swap.apps.fwaters.uw4y.s1.devshift.org/ **This may not be currently running.
- The corresponding frontend application is deployed here: http://yarnswap-fe-yarn-swap.apps.fwaters.uw4y.s1.devshift.org/
- There are 11 API endpoints adding and retrieving data on Firebase Realtime Database.
- Clone this repo
- Open it
- Set up a firebase account and add required credentials.
- From the root directory run
go mod download && go mod verify
- From the root directory run
go run .
- API endpoint testing has been added using the Go Testing Package.
- Run these tests with
go test
- For more information please refer to the final project report