connect with backend and frontend

First version of code which can run with back end and front end