News for hackers. Stuff that matters.
Re:Launch HN: Cosmic JS (YC W19) - API-first drop-in replace... by laurynas-s on Thursday March 07, 2019 @02:17PM (#19331183)
I was looking something like this when I wanted to add a blog for my React SPA apps. I didn't want WordPress, but I wanted a simple backend just for editing the blog posts.

However, I realised that it is going to be bad for SEO as I cannot do serverside rendering this way.

I cosidered adding a WordPress blog, but eventually just ended up with a simple markdown rendering from the files - 1 file - 1 post.

If you manage to find a easy way to support serverside rendering, the product is going to be good.

Re:Launch HN: Cosmic JS (YC W19) - API-first drop-in replace... by isthispermanent on Thursday March 07, 2019 @02:56PM (#19331630)
My server-side React blog (https://philandrews.io) runs on Cosmic. And it's easy. Given that your blog posts reside at the end of a url, one GET request brings gets all the content you need to populate your index or post page. Pair your React with NextJS, fetch your post(s) in getInitialProps and you're good to go.

Here's an article I wrote about opening up a blog with Cosmic back in 2017. It still holds... https://hackernoon.com/language-agnostic-content-management-...

Re:Launch HN: Cosmic JS (YC W19) - API-first drop-in replace... by tonyspiro on Thursday March 07, 2019 @02:19PM (#19331207)
You CAN do server-side rendering. Check out our apps page to see how you can integrate dynamic content into any website or app, server or client-side: https://cosmicjs.com/apps
Re:Launch HN: Cosmic JS (YC W19) - API-first drop-in replace... by Geee on Thursday March 07, 2019 @05:14PM (#19333084)
I think you should use static site generator such as gatsbyJS. It's even better than server-side rendering.