Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 days 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 (over 4 years ago)
- Default Branch: main
- Last Pushed: 2024-05-18T18:16:47.000Z (6 months ago)
- Last Synced: 2024-05-18T19:28:19.819Z (6 months ago)
- Topics: api, docker, golang, kong-gateway, newman, openapi, postgresql, postman
- Language: Go
- Homepage:
- Size: 952 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
cd test
``````bash
./run_tests.sh
```