Created rails api interface.
Started on angular side.