sinatra app for SPA