Home Consume Remote API in Laravel with Nodejs and Angular
Reply: 0

Consume Remote API in Laravel with Nodejs and Angular

user5922 Published in September 19, 2018, 6:49 pm

I need some help in my project:

I have one API created in Laravel 5 with MongoDB this found fine, I make test with postman and I can login, logout, refresh token and CRUD of all my collections, for authenticated I use laravel/passport.

I created a simple client in nodejs + express and angular

the diagran it's

but I need make all request to api in node for the security no directly in angular, some this

to make request to API in node I can use node-rest-client, but I do not know how to send the answer to angular and how to call methods created in node when I use a button click for example, someone could help me

sorry for my English and the pictures

share|improve this question
  • Using duo server side Node JS and Laravel API. Why don't you call the API directly and make that secure? – Farooq Khan Jan 29 '17 at 9:25
  • Because the client needs it this way, it only wants the API in php and the client in Angular using node, thank very much for reply – Juan Ibarra Jan 29 '17 at 11:20

1 Answer 1

active oldest votes
up vote 0 down vote
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.524841 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO