build an environment for the app