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

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

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