(feat) created backend layout for server and middleware