backend scaffolding for rest and realtime connection