This repository is a work in progress initiative to create an API to manage your feature flags.
- Create an API to manage your feature flags
- API should allow to add, modify and delete feature flags.
- Use a database to store the feature flags.
- This API is created to integrate a front end application to manage the feature flags.
- We should manage authentication and authorization to access the API.
- Authentication should be generic enough to be integrated with any authentication provider.
- We should be able to provide history of a flag to see when it was created, modified and deleted.
- GO API using echo
- Postgres database using
sqlx
andpq
as driver.
After cloning the project you can start the database (using docker):
make setup-env
It will start an instance of postgres with the following credentials:
- user:
goff-user
- password:
my-secret-pw
And it will apply the database migrations to your environment.
To start the API:
make build
./out/bin/goff-api
When started you can access the swagger UI at http://localhost:3001/swagger/.