All threads / Your First Ember App Discussion

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Your First Ember App Discussion

Dicussion for Your First Ember App
Reply

I have a question. If you have an app that is developed on Rails on the backend and Ember on frontend, would you keep both frontend and backend on the same repository, or on two different ? If the 1st case is the correct, then I guess both would live under the root (app name) folder right? something like this

- app-folder (git-init here)
-- backend (rails api)
-- frontend (ember)

You could do that and some companies recommend that for instance thoughtbot. Personally I would n't though, your git commits would be messy because you'd be commit to 2 different project/languages in one go and that can lead to messy git logs when debugging.

Thank you for your reply! so I guess in this case you would also deploy on two different machines/droplets (if you are using DigitalOcean for example) is that correct? How would the backend communicate with the frontend?

Update: You can use one droplet. After all, both projects won't be installed in the same location. Think of it this way, when you develop on your machine, you have both Ember and Rails installed and in most cases, they don't conflict. So the same thing should work on the cloud.

For connecting the backend with the frontend, you have to do some magic with the adapter. I recommend this tutorial: "http://www.thegreatcodeadventure.com/ember-js-tutorial/

Reply
Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 33,665+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.