Project demo video link - https://youtu.be/8nqrYOmumXM
Project link - https://www.ecommerce.mithunjmistry.com
E-commerce application with PHP Laravel backend and React-Redux frontend:
React files are present in resources/assets/js and SCSS files in resources/assets/sass
Instructions -
- Install npm, composer and yarn
- Run "composer install"
- Rename .env.example to .env
- Generate the key with "php artisan key:generate"
- Run "npm install"
- Run "yarn run dev" to create necessary files.
- Run "php artisan passport:install" and copy and paste the keys in .env file.
- Configure MySQL database and provide connection details.
- Run "php artisan migrate"
- Run "php artisan serve"
Sample env is being provided in project.
For email -
- Create a free account on Mailgun and fill the mailgun API details in .env file.
For cache -
- Host a Redis server and provide the details in .env or change the cache driver to "file"
For email validation -
- Sign up free on Verifalia and provide details in .env file to validate email.
The e-commerce site will be served. Custom SASS loader is configured in the webpack.
React is served via Laravel and fetches data by RESTful API calls made in Laravel.
Enjoy the react project with Laravel backend!