O
O
Oleg Titarenko2016-03-29 22:24:51
Angular
Oleg Titarenko, 2016-03-29 22:24:51

How to deploy Angular 2 TS under PHP Application?

The site needs to implement Angular 2 and it is the second one. But I can't figure out how to implement it on a site that runs on PHP Kohana 3.3. Allocate a separate subdomain for it or is there a solution to this problem.
It is desirable that it would be possible to apply TS.
P.S. Thank you for your reply.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Titarenko, 2016-03-29
@olegtytarenko2

Found a solution.
How to organize the correct directory structure in a Symfony2, NodeJS, AngularJS project? - this answer helped me a lot. Thanks everyone for the help

S
sanex3339, 2016-03-29
@sanex3339

I made an integration repository, but under Laravel 5. On the side of the framework, you only need to file the routes there.
+ Elixir is used, Kohana needs to be converted to pure gulp.task.
https://habrahabr.ru/post/278599/
https://github.com/sanex3339/laravel-5-angular-2-e...
Well, yes, they correctly noted in the comments to the article - this is not a very good way , it is better to move the front to a subdomain.

I
Ilya, 2016-03-29
@FireGM

I've heard that it's bad practice to make a monolithic frontend+backend application with Angular2. Angular should not know anything about the backend, except that such and such data is returned for some requests.
It is better to raise some nginx that returns index.html for any request, except for requests addressed to the backend api. This is for not too big sites. And for large ones, it is better to hire normal developers who know how to deploy.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question