Initialize app and repository.