frameworks - Ruby on Rails separate front & back -


i've been using ruby on rails since little more 1 year , i've in casual way, mean, in 1 place (front & back), using standard .html.erb file populated associated controller method.

otherwise, today in our project, have need separate front , end multiples reasons (code maintainability / clarity, better architecture, more reactivity, etc...).

i've done plenty of researches, watch conferences (1, 2, 3), didn't find solution yet. looks question comes often, best practice/tools separate backend , frontend of ruby on rails app?

i don't feel need (yet) huge js framework react/emberjs/angular/etc...

first thinking middleman/jekyll , make communication via json , api calls, seems it's not solution dynamic website.

so there frontend framework works rails api , maintainable , upgradable (add feature/extension gems)?

thanks insights.

i have similar setup 1 of commenters on question.

i'm using rails project structure, define page layouts, , activerecord.

i have json apis defined using grape api framework.

i have spa, written on angularjs lives in public/ folder. doubles mobile app, made possible phonegap. if angular app didn't double mobile app, could've possibly used asset pipeline serve spa. compensate that, have separate build task written in grunt minify/uglify js/css assets before deploy them out production.

i use comfortable mexican sofa static content pages.

it took trial , error things right, overall find setup serves me pretty well.


Comments

  1. hello,
    I used to need way too much time making blog articles into Markdown docs, so excited I discovered the Ink for All word processor’s Markdown export capability|Was investing too much time making blog articles into markdown files. Happy I started using INK FOR ALL’s Markdown export feature. Badass.

    ReplyDelete

Post a Comment

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -