Setting up file structure and testing connections