Setup the configuration, and basic apis