finish server and frontend