added basic rails backend api and angularjs frontend