Set up and run the application