https://github.com/heikkilamarko/golang-api
A simple RESTful API written in Go.
https://github.com/heikkilamarko/golang-api
api docker golang kong-gateway newman openapi postgresql postman
Last synced: 3 months ago
JSON representation
A simple RESTful API written in Go.
- Host: GitHub
- URL: https://github.com/heikkilamarko/golang-api
- Owner: heikkilamarko
- License: mit
- Created: 2020-07-01T05:21:16.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2025-02-22T16:27:40.000Z (over 1 year ago)
- Last Synced: 2025-02-22T17:28:11.562Z (over 1 year ago)
- Topics: api, docker, golang, kong-gateway, newman, openapi, postgresql, postman
- Language: Go
- Homepage:
- Size: 964 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# A Simple RESTful API Written in Go
## Tech Stack
- [Go](https://go.dev/)
- [OpenAPI 3](https://www.openapis.org/)
- [Kong Gateway](https://konghq.com/kong/)
- [PostgreSQL](https://www.postgresql.org/)
- [Migrate](https://github.com/golang-migrate/migrate)
- [Postman](https://www.postman.com/) & [Newman](https://www.npmjs.com/package/newman)
- [Docker](https://www.docker.com/)
## Secrets Management
This repository uses [SOPS](https://github.com/mozilla/sops) with [age](https://github.com/mozilla/sops#encrypting-using-age) for managing secrets.
See [config](config/) for details.
## Build and Run
Before running the below command, make sure you have the unencrypted secrets in the `env` directory. See [config](config/) for details.
```bash
docker compose up --build -d
```
Kong Manager: http://localhost:8002
## Run Postman Tests
```bash
test/run_tests.sh
```