An API written in Go that serves up data for the Project Archipelago frontend.
# Download this project
go get https://github.com/do-community/project-archipelago-go-backend
# Build and Run
cd project-archipelago-go-backend
go mod init
go run .
API Endpoint : https://127.0.0.1:8080/
├── controllers
| └── profilecontroller.go
├── database
| └── mongo.go
├── entities
| └── profile.go
└── config.go
└── config.json
└── main.go
└── README.md
GET
: Get all profiles
GET
: Get a specific profile using an ID
POST
: Create a new profile
PUT
: Update a profile
DELETE
: Delete a profile
GET
: Get the healthcheck endpoint,OK
- Add a healthcheck endpoint at
api/health
that returnsOK
- Store the MongoDB Connection string as an ENV var and use the
os
pkg to get the value - Refactor
GetProfiles
code - Write
GetProfileById
code - Write
GetProfileById
code - Write
CreateProfile
code - Write
UpdateProfile
code - Write
DeleteProfile
code - Containerize with Docker
- Build a deployment process to push Docker image to a container registry
- Add yaml manifests for a Kubernetes Deployment and ClusterIP service