A
A
Artem2017-05-22 08:35:58
Angular
Artem, 2017-05-22 08:35:58

How to run frontend (angular2) and backend (silex)?

A project is being developed in which the frontend is planned for angular2, the backend for silex.
The question is, which layer should run first and run second? In other words, there is index.php where silex bootstraps and there is index.html where angular bootstraps. Accordingly, the angular components pull the silex routes. Or do they need to be separated into separate hosts / ports?
I hope I wrote clearly)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem, 2017-05-31
@artymail

The problem turned out to be illusory. Solved in an elementary way. At the root of the web server, I created a folder, for example, api. I put index.php with silex bootstrap in it. And I started all the routes with angular through / api /.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question