I love today’s world web technologies and thanks to various cloud platforms that allow developers to deploy their application to test and showcase, we can use any combination as per our need. Recently, I got the chance to get hands on experience in using Reactjs Library in setting up SPA and Full Stack Applications. I used Reactjs in different combinations. Hope it will give an overview to newbies.
Reactjs and Lumen Application
Reactjs and Laravel Application
Reactjs and Express Application
For this I used separate folders to differentiate between front end and back end (api calls). Front end is developed using Reactjs and can be deployed in AWS Amplify ( I recommend ), or you have other options like Heroku, Netlify, Zeit and can deploy in EC2 instance of AWS. It’s truly depends on personal choice and available resources.
I love the option of Auto-deploy of application on Cloud, It auto push and deploy your changes when you git push your changes on linked git repository.
Backend application developed is basically to get API calls (REST), yet not tried GraphQL but will try it soon and its developed in slim and light php framework Lumen which is mini version of Laravel. I liked it as it provides php artisan to create containers, models, views, service providers and many many things using CLI.
This combination is best when you want separate codebase and deployment for frontend and backend.
Demo: NA to share
This is the official project. In this case I used Laravel 5.8 as full fledged code base, by default Laravel use Blade as templating engine. But with some tweaks and alteration in code we can use Reactjs as template engine. You can use Vuejs too, as Laravel officially support Vuejs. Again it’s up-to your personal choice.
I used Admin Panel login authorization and created CMS using Laravel and for Routing Reactjs routes used separate route.
This combination is best when you are fan 🤩 of Laravel and want to use Reactjs as front end.
This website I created for my company’s new venture which is static website but need form validation and submission to mailchimp. Again I want to use Reactjs, so to handle server side stuff rather to use php I used Nodejs.
- Create HTML pages for static pages.
- Create php page for server side render or handling.
- Use jQuery to handle client side form submission.
- Create Pages in Reactjs
- As Reactjs installed over nodejs, so nodejs is being used to handle server side stuff.
- Reactjs to handle form submission itself.
This combination is best when you have small application which need server intervention too.
Detail Setup Explained: https://dev.to/navdeepsingh/basic-ern-stack-application-setup-3gdp