Receive and handle post request


#1

Hello community,

I’m new to ember, I learnt ember by following some tutorials and build some basic apps.

Now I’m working on an emberjs app which will receive post request from an external server, process it and return a response.

I’ve been struggling with this for days now.

Thanks in Advance!!!


#2

Shouldn’t your Ember app be the front end and the backend dealing with requests?


#3

Thanks Joshua.

Can I build the backend in emberjs?


#4

Thanks.

Can I build the backend with ember.

I’ve built a similar app with nodejs. It receives a post request from another app, get the parameters and take some actions returns a response.

Can I do that in Ember?


#5

Ember is a JavaScript framework designed for front-end development. The entire focus of it is single-threaded, single-user, running-in-a-browser centric.

The first thing you would ask is “since it won’t be running on Chrome/etc., In what JS host/engine will this JS app be running?”

Then, “How will the app handle multiple, concurrent user requests?”.

And, “How do I start a TCP listener in Ember/JS?”

I can imagine that all of those are possible, as it is just JS after all. But you won’t be using any of Ember to do so other than an app entry point. You’ll likely find a friendlier path using something designed for the back-end, though.


#6

Thanks guys. I get it now.