single page app api starter