Set up the application