BuildForSDG / Phenom-Backend

Team-056 backend solution for BuildForSDG 2020 Innovation challenge.
0 stars 4 forks source link

Integrating Laravel with React #3

Closed onyijne closed 4 years ago

onyijne commented 4 years ago

Information needed to serve as guide A brief research on using Laravel(Lumen) with React would be helpful as a guide to us while building our solution.

What information do we need We need information on technical guides, what will work best and any known challenge and how to fix it if any.

uchennaibekwe commented 4 years ago

Here is important info from the Lumen documentation:

Lumen 5.2 represents a shift on slimming Lumen to focus solely on serving stateless, JSON APIs. As such, sessions and views are no longer included with the framework. If you need access to these features, you should use the full Laravel framework.

So, since we intend to use Lumen to just create an API for the backend, then we can go ahead and work with it instead of the full Laravel. Lumen also promises speed, so it is faster than Laravel itself.

We can always refer to the lumen document for all the help we may need along the line.

With React, we can consume the API from our Lumen micro-framework. So, React would be used the usual way to achieve the consumption of APIs

onyijne commented 4 years ago

@uchennaibekwe so we should stick with Lumen?

onyijne commented 4 years ago

Okay @uchennaibekwe thanks. Please help us with setting up Lumen