TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Universal JavaScript + separate API project?

1 pointsby blamarvtover 8 years ago
Javascript has a rich ecosystem around rendering and displaying webpages but there are other languages which are subjectively better at data modeling and efficiently implementing an API.<p>I&#x27;ve been looking for a project which successfully separates the API from the frontend and also provides a server-side render (aka universal, aka isomorphic).<p>Does anyone have a project like this they might be willing to link to? Every react&#x2F;angular boilerplate project I&#x27;ve found has the API tightly integrated into the javascript!<p>Thanks!

1 comment

redvulpsover 8 years ago
I had this scenario(or at least close to it) on the company that I&#x27;ve worked before. We had a nodejs&#x2F;angular frontend and all the backend were spread across multiple api(each api was a microservice).<p>It does scale very well, considering that all the microservices are written in ruby.<p>And for the SEO thing, there was a varnish server before the frontend server that sends bots request to a custom prerender server ( <a href="https:&#x2F;&#x2F;github.com&#x2F;prerender&#x2F;prerender" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;prerender&#x2F;prerender</a> ).<p>So basically, normal users were redirected to the nodejs app, and google and others crawlers were redirected to prerender.<p>I dunno exactly if this is what you want to get with &quot;also provides a server-side render&quot;, but I guess it&#x27;s close to what you&#x27;re looking for :)
评论 #12583189 未加载