Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm relatively new to Web Development especially when it comes to infrastructure.

I have AngularJS application build and served by brunch.io locally. It uses rails-api JSON data.

I'd like to deploy my angular application separately from rails server. For now, JS app is placde inside public directory of backend server and deployed together. It isn't elegant nor effective so I want to use some other hosting service.

I was thinking about VPS where I could place both Angular and Ruby applications. I read about NodeJS or Nginx that can serve static files, but I don't have any knowledge or experience with these technologies.

How is the best way to provide separate frontend and backend applications communicating with each other?

share|improve this question

closed as too broad by dan May 28 at 6:31

There are either too many possible answers, or good answers would be too long for this format. Please add details to narrow the answer set or to isolate an issue that can be answered in a few paragraphs.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Unfortunately, this question is too broad and will result in opinion-based answers. If you can edit this to something more specific and less subjective, it will be reviewed to be reopened. –  dan May 28 at 6:39
add comment