set up Flask and server directory