Table of Contents
Rapid prototyping can be a great tool for desinging and developing a project. Getting a Kubernetes stack up to test the flow of an application is great when each service will included structured logging and monitoring services.
Each Protoserver can be configured to certain MODES:
- STUB - to return a fixed response for each endpoint
- RELAY - to forward request to another internal or external service
- AGENT - to process request based on configured preset MACROS
You can progressively replace mocked/stubbed services with your own services. This project will let you start designing at the Kubernetes stack level.
This section should list any major frameworks/libraries used to bootstrap your project. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
Usage of this respo will soon only require pre-built Docker Images that will be on https://hub.docker.com/u/kyledinh. I will be writing Usage Documentation soon, the work so far can be found in the examples
directory.
See the examples
directory to get started.
- Provide Docker container images on: https://hub.docker.com/u/kyledinh
- Examples to deploy locally with Docker Desktop
- Examples to deploy hosted Kubernetes stack like Linode or GKE
- Provide tools to view/manage Kubernetes stack (kt)
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
Software | Version | Install |
---|---|---|
Go | 1.18 | https://go.dev/doc/install |
Docker Desktop | 4.3.x | https://www.docker.com/products/docker-desktop |
This script will query your local machine for software and their version.
- Check your local installation for dependencies and their version
make check
The Makefile will provide scripts to install all the local dependencies.
- Clone the repo
git clone https://github.com/kyledinh/protoserver-go.git
- Install packages
make setup
- STUB, RELAY action
- Structured Logging
- Auth Middleware with JWT
- Tooling for development - linkt to https://github.com/kyledinh/btk-go
- Tooling Kubernetes stack, deploy/view/monitoring
- Prometheus monitoring
- Example Usages
- Local
- GKE
See the open issues for a full list of proposed features (and known issues).
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the Apache License. See LICENSE
for more information.
Kyle Dinh - @iamslowblood
Project Link: https://github.com/kyledinh/protoserver-go
Use this space to list resources you find helpful and would like to give credit to. I've included a few of my favorites to kick things off!