itsthatguy / avatars-api-middleware

The express middleware for our avatars service
http://avatars.adorable.io
Other
749 stars 96 forks source link

Discussion : Laravel Installation or Use #83

Closed varadpoddar closed 6 years ago

varadpoddar commented 6 years ago

Hi, I was wondering if there was a way to integrate this in Laravel. 👍

rylnd commented 6 years ago

Hi @varadpoddar! I'm not familiar with Laravel but it looks to have a lot of overlap with express.js, for which this project is a middleware.

Conceptually, the shortest path to your request would be to run both application servers on your backend: a PHP server running your laravel app, and a node.js server running this avatars API as an express app.

Because of the aforementioned conceptual overlap between the two libraries I couldn't find any perfect examples for you, but LaraSocial seems to include a node.js server within a Laravel app (see the server.js entrypoint).

I hope this helps! GitHub issues are specific to issues with the library itself, so if you have further questions about how to generally integrate Laravel and express.js I would look to the StackOverflow community for answers.