A Red Ruby IT company
Quickly and easily make content, appearance or behavior changes to your apps and websites without the need to recompile and republish them, from a single dashboard.
Nuget package
NPM package
{}
*Used in this presentation
$ npm i remoteconfigs-client
import { RemoteConfigsRepository } from 'remoteconfigs-client';
fetchFromRemoteConfigs = async () => {
const rcRepo = new RemoteConfigsRepository('API_TOKEN');
const configs = await rcRepo.GetAllConfigurations();
//configs
}
import { RemoteConfigsRepository } from 'remoteconfigs-client';
fetchFromRemoteConfigs = () => {
const rcRepo = new RemoteConfigsRepository('API_TOKEN');
rcRepo.GetAllConfigurations().then(configs => {
//configs
});
}
public void ConfigureServices(IServiceCollection services)
{
...
services.AddRemoteConfigs("API-KEY-000000")
...
}
public class ValuesController : ControllerBase
{
private readonly IRemoteConfigsRepository _remoteConfigsRepository
public ValuesController(IRemoteConfigsRepository rcRepo)
{
_remoteConfigsRepository = rcRepo;
}
}
var configs = await _remoteConfigsRepository.GetAllConfigsAsync();
var specifiConfig = await _remoteConfigsRepository.GetConfigAsync("CONFIGID");
More options for A/B testing (Variants)
A Red Ruby IT company