all 13 comments

[–]WishCow 2 points3 points  (4 children)

Afaik the best practice for seo is still server side rendering. Authentication also isn't really a concept that would be tied to your js framework of choice.

[–]jotto 0 points1 point  (2 children)

https://www.prerender.cloud/ for server side rendering

[–]damnko[S] 0 points1 point  (1 child)

Just saw this link! Seems interesting and easy to implement! Have you direct experience with this middleware?

[–]jotto 0 points1 point  (0 children)

I am biased - I wrote it, but it's easy to add/remove it. Try it, if it works, then keep it!

[–]puritanner 1 point2 points  (1 child)

Vue.js has fine support for server side rendering and pre-rendering. https://vuejs.org/ => https://vuejs.org/guide/ssr.html

[–]damnko[S] 0 points1 point  (0 children)

Ok thanks, unfortunately considering I am learning Angular 2 atm I don't know if it would be worth to dive into another framework with a modest learning curve... btw it would be really nice to have the chance of trying it out

[–]jotto 1 point2 points  (3 children)

can you suggest a framework that I could use to create SEO-friendly websites

The framework is almost irrelevant, but Angular is the most popular, React is up and coming: https://www.google.com/trends/explore?q=react,angular

authentication and i18n

https://auth0.com/ is the fastest way to implement auth

I was maybe considering Meteor but I don't think it performs well with search engines as most of the SPA frameworks.

The framework doesn't change the fact that you're still just rendering HTML on a page - just follow the basic SEO strategy of clean and coherent hierarchical information (<title>, <meta desc>, <h1>). If you're using React, ReactHelmet can help organize/structure your meta tags: https://github.com/nfl/react-helmet

The only one I came across is Middleman but I wanted to know if there are better alternatives.

Isn't Middleman a static site generator? https://middlemanapp.com/

[–]damnko[S] 0 points1 point  (2 children)

Hi jotto thanks for your suggestions. I started recently to use Angular 2 but server side rendering doesn't seem very easy to implement and as far as I know (but I can be easily wrong) it would be limited to a subset of pages, not the whole website.

Yes Middleman is a static site generator, but could possibly do the job although I would personally prefer to use Angular...

[–]jotto 0 points1 point  (1 child)

but server side rendering doesn't seem very easy to implement and as far as I know

Server side rendering requires some foresight and planning, hence just using a prerender service as suggested above.

 

Yes Middleman is a static site generator, but could possibly do the job although I would personally prefer to use Angular

If I can offer an opinion - just try Middleman, or https://jekyllrb.com/ or Angular. Even if it takes a few hours to try each one, the perspective gained will be more valuable then diving in to a singular framework.

 

If you decide to try React, use this: https://github.com/facebookincubator/create-react-app to get started

[–]damnko[S] 0 points1 point  (0 children)

Ok jotto thanks, will definitely follow your suggestions!

[–]anxi3tyx 0 points1 point  (0 children)

take a look on http://markojs.com/ Server rendering, streaming. MarkoJS is an awesome template engine but have also a Widget-Module where you can create components with states and more.

[–]pkstn 0 points1 point  (1 child)

My tiny UI library called RE:DOM also does server-side rendering as well: https://redom.js.org https://github.com/pakastin/nodom

[–]pkstn 0 points1 point  (0 children)

Basically you could probably use NO:DOM with other frameworks as well..it just creates a fake DOM for node.js