Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sashabaranov/pike
Generate CRUD gRPC backends from single YAML description.
https://github.com/sashabaranov/pike
crud golang grpc postgresql
Last synced: 23 days ago
JSON representation
Generate CRUD gRPC backends from single YAML description.
- Host: GitHub
- URL: https://github.com/sashabaranov/pike
- Owner: sashabaranov
- License: apache-2.0
- Created: 2020-04-26T11:54:37.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-16T09:47:04.000Z (over 2 years ago)
- Last Synced: 2024-09-28T18:23:43.852Z (about 1 month ago)
- Topics: crud, golang, grpc, postgresql
- Language: Go
- Homepage:
- Size: 122 KB
- Stars: 312
- Watchers: 9
- Forks: 17
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-repositories - sashabaranov/pike - Generate CRUD gRPC backends from single YAML description. (Go)
- awesome-grpc - Pike
README
# Pike
Generate CRUD gRPC backends from single YAML description.
Check out **[Playground](https://backend-playground.transcendent.app/)**!
Pike generates:
* gRPC Protobuf service description with basic Create, Read, Update, Delete operations
* Go implementation of gRPC service
* Supports all CRUD SQL queries
* No additional framework usage. Only depends on `grpc` and `pq`
* TLS support
* PostgreSQL migration(`CREATE TABLE`) compatible with [migrate](https://github.com/golang-migrate/migrate) tool#### Usage
Install: `go get github.com/sashabaranov/pike`
Run: `pike project.yaml`
#### Example
Generated project can be found [here](https://github.com/sashabaranov/pike/tree/master/examples)
#### Philosophy
> A complex system that works is invariably found to have evolved from a simple system that worked. A complex system designed from scratch never works and cannot be patched up to make it work. You have to start over with a working simple system.
>
> — Gall's LawPike let's you create simple systems quickly and does not impose any limitations afterwards.
Pike's name originates from Russian [fairy tale](https://en.wikipedia.org/wiki/At_the_Pike%27s_Behest)
— По щучьему веленью,
По моему хотенью —
выстройся каменный дворец с золотой крышей…