Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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
```