ansrivas / angular2-flask

Simple angular2 app with python-flask backend ( Learning Angular2 )
MIT License
152 stars 46 forks source link

In the frontend, where is it specifying the backend's URL? #18

Closed fernandocamargoai closed 7 years ago

fernandocamargoai commented 7 years ago

I'm using your application as example to develop a Flask+Angular2. I understood why you're running Angular apart from the Flask, but I couldn't find where you're setting the backend URL in development. I mean, the IP:PORT. Is there any configuration file I couldn't find? In production, I've seen the nginx will handle it. But how does it work in development?

ansrivas commented 7 years ago

Hi, its defined here in webpack.dev.js file.

https://github.com/ansrivas/angular2-flask/blob/master/front/config/webpack.dev.js#L247