Setup app environment