Skip to content

Search server - find and manage features by required properties

Notifications You must be signed in to change notification settings

MarkKlimenko/go-feature

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-feature

Start postgres for application

docker run --name go-feature-postgres -p 5432:5432 -e POSTGRES_PASSWORD=postgres -d postgres:15.2

Build application

// or use other java 17 version
sdk use java 17.0.5-librca

./gradlew build

Start application

java \
-Dapplication.loader.location=/Users/markklimenko/data \
-jar build/libs/go-feature-1.0-SNAPSHOT.jar

Test request

curl --location --request POST 'localhost:8080/api/v1/features/search' \
--header 'Content-Type: application/json' \
--data-raw '{
    "namespace": "default",
    "data": [
        {
            "parameter": "os",
            "value": "ios"
        },
        {
            "parameter": "userName",
            "value": "patrik"
        },
        {
            "parameter": "osVersion",
            "value": "13"
        }
    ]
}'

>>
{
    "features": [
        "enablePayments",
        "enableAdvancedScroll"
    ]
}

Functionality (TBD)

  • config loader
  • storage
  • feature-toggle/find functionality
  • headers X-B3-TraceId/X-B3-SpanId
  • localization

About

Search server - find and manage features by required properties

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages