Live data from Hacker News

Ask HN: Should I use Wordpress to power the front end of my Rails web app?

news.ycombinator.com

21–28 of 28 posts

Re: Ask HN: Should I use Wordpress to power the front end of my Rails web app?

#21
I'm currently working on a project that employs this concept; we use Rails for the heavy lifting, registration, payments, etc (lots of complex stuff), and we use Wordpress to allow our client to easily create beautiful things.

The truth of the matter is that making a rails app that covers the flexibility that Wordpress allows (including things like Yoast's seo plugin, for instance) is just infeasible in Rails. The newest update to Wordpress is also quite beautiful.

I've been building on Rails and Wordpress for a while now, and have yet to see a full featured solution to flexible content management that equals or surpasses WP. I have yet to see something that makes data transformation and api creation as easy as rails does. (These are gross overstatements, but the point is that the two tools are very different in key ways, and can be used to complement each other if those differences are respected.)

Re: Ask HN: Should I use Wordpress to power the front end of my Rails web app?

#22

I'm currently working on a project that employs this concept; we use Rails for the heavy lifting, registration, payments, etc (lots of complex stuff), and we use Wordpress to allow our client to easily create beautiful things. The truth of the matter is that making a rails app that covers the flexibility that Wordpress allows (including things like Yoast's seo plugin, for instance) is just infeasible in Rails. The ne…

Note: WordPress (sp)

Re: Ask HN: Should I use Wordpress to power the front end of my Rails web app?

#23

The marketing tools you gain in WP are not worth building your product-core in WP. Anything that you get as a WP plugin is something you could build really easily as your own component in Rails. 1. built-in blogging ... everyone and their brother has built a blogging platform for Rails. WP's blogging platform is a one-size-fits-all approach which usually means you only use about 10% of what it's capable of, so having…

Having good blogging software is not as simple as generating a data structure.

There's plenty to be said for having a good admin UI (that non-developers can easily figure out). The flexibility and depth you get out of the box is not going to be matched by anything you can do yourself in a short amount of time.

> You can rebuild ANY feature or plugin in the WP domain very easily in Rails

This is just false - there's so many well matured products in the WP ecosystem that would take way too long to quickly develop no matter what language you're using. There's a lot of plugins built specifically in mind for a marketing / brochure type website that have had years of development that you can benefit from immediately (SEO plugins, contact forms, ecommerce..)

I'm not suggesting that WP as a frontend is the way to go, but I would not throw it out with the assumption that you will be able to rebuild it easily.

I would weight the decision entirely on how much integration will need to be done and what your marketing needs are. A couple of questions I'd ask are:

1) Is there going to be someone constantly tinkering with the site to tweak SEO as much as possible?

2) Will content be frequently updated, or will the site act more as a landing page with just occasional updates?

3) Do you ever need to authenticate a user on the marketing site? (I find cross-application authentication to be one of the harder integration problems to tackle and a good reason to not use a separate CMS system)

If it's just a landing page with only occasional updates, building it out as a simple view within your existing app framework may work just fine (or heck, just some static HTML files may fit the bill).

Re: Ask HN: Should I use Wordpress to power the front end of my Rails web app?

#24
I've found the best approach is to use something like middleman to build the front end / marketing site. Good ol static pages and the rails app is isolated from the static page. Middleman also has a blogging plugin which makes I easy to keep it updated. Doing SEO is also straight forward since they are just static pages

Re: Ask HN: Should I use Wordpress to power the front end of my Rails web app?

#25

I'd put the marketing site at whatever.com and the app and app.whatever.com. You then decide what types of information needs to pass between the two systems. Instead of porting your entire frontend you simple build a few API calls and pull those in with WordPress.

As someone who is a full-time WordPress platform architect, I completely agree with @deathspin here.

Do you know of any good online resources that could be used to learn how to use wordpress to pull api calls from a rails app?

Re: Ask HN: Should I use Wordpress to power the front end of my Rails web app?

#26

Earlier quoted context omitted.

As someone who is a full-time WordPress platform architect, I completely agree with @deathspin here.

Do you know of any good online resources that could be used to learn how to use wordpress to pull api calls from a rails app?

Don't even bother. You can find hundreds of people on elance to do it for you for a couple hundred bucks.

Re: Ask HN: Should I use Wordpress to power the front end of my Rails web app?

#27

Earlier quoted context omitted.

As someone who is a full-time WordPress platform architect, I completely agree with @deathspin here.

Do you know of any good online resources that could be used to learn how to use wordpress to pull api calls from a rails app?

You'd want to do it as a WordPress plugin, this way you're not fucking around with any core files and it should be upgrade proof (for the most part). Start Here: http://codex.wordpress.org/Writing_a_Plugin

Re: Ask HN: Should I use Wordpress to power the front end of my Rails web app?

#28

Earlier quoted context omitted.

Do you know of any good online resources that could be used to learn how to use wordpress to pull api calls from a rails app?

You'd want to do it as a WordPress plugin, this way you're not fucking around with any core files and it should be upgrade proof (for the most part). Start Here: http://codex.wordpress.org/Writing_a_Plugin

One small thing to take note of though with private plugins is to make sure the name of the plugin is unique enough that it won't collide with another one in the repository. A minor issue though.
Post reply on HN