https://github.com/MarkelCA/toggles
A minimalistic feature flags engine made with Go
https://github.com/MarkelCA/toggles
cli docker-compose feature-flags go golang mongodb redis rest-api websocket
Last synced: 11 days ago
JSON representation
A minimalistic feature flags engine made with Go
- Host: GitHub
- URL: https://github.com/MarkelCA/toggles
- Owner: MarkelCA
- License: mit
- Created: 2023-11-22T19:28:25.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-01T22:02:59.000Z (12 months ago)
- Last Synced: 2025-02-24T11:48:34.668Z (3 months ago)
- Topics: cli, docker-compose, feature-flags, go, golang, mongodb, redis, rest-api, websocket
- Language: Go
- Homepage:
- Size: 74.3 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# toggles
Toggles is a feature flags engine made in Go. Its default implementation uses MongoDB for disk storage and Redis for flag value cache management. It includes implementations as a REST API, WebSocket server, and CLI tool. There are also plans to build SDKs soon.# Configure
In this step you'll be able to configure the port where the service will run (`APP_PORT`) and the desired implementation (`APP`). The `APP` value should be a folder from `cmd`. Currently there's two options: `api` (rest api) and `ws` (websocket).
```bash
cp .env.example .env
```
_Example env file:_
```env
APP=ws
APP_PORT=3000
```# Install
Using [docker](https://docs.docker.com/desktop/):
```bash
git clone https://github.com/MarkelCA/toggles
cd toggles
docker compose up --build
```