R
R
Rishat Sultanov2017-08-05 21:18:53
Node.js
Rishat Sultanov, 2017-08-05 21:18:53

How to marry Express with Laravel?

Good evening :)
I have a project written in Laravel.
Now I wanted to attach easyrtc to the project. Lifted everything means on a node. Now I think. How to marry authorization .. What options are there? I now have regular Laravel authorization out of the box on board.
The new authorization is somehow not convenient. But as an emergency option lies.
Thanks everyone for the help :)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
R
Ramil, 2017-08-05
@rshaibakov

I did not quite understand what easyrtc is for. But since express and laravel are frameworks for different programming languages, you need to create your own REST API server on express and communicate with it. You can access it from Laravel via Curl.

A
Alexey Shashenkov, 2017-08-05
@teknik2008

As an option, make a method on Laravel and pass header parameters to it, for example, get a response via exec , put your cookie through the node, and basically that's it.

E
emp1re, 2017-08-07
@emp1re

Microservices.
It all depends on the final goal, you can make a separate authorization microservice and, if necessary, run to it for rights, or only communicate with the desired service from the monolith.
+ Any language for any microservice
+ Flexibility in development
- Development becomes more complicated
- Difficult to test

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question