server app structure