database logic and api routing spring boot backend reactjs code example Example: spring react npm install react-spring