Giter Club home page Giter Club logo

laravel-react's Introduction

Laravel 8 and React 17 boilerplate

There are two different ways to run this demo

Please follow the guide.

Prerequisite

  1. Make sure you have composer installed.
  2. Make sure you have latest stable version of node installed.

Option 1

  1. git clone
  2. create a .env file copy content from .env.example and update the values
  3. composer install && composer update
  4. php artisan cron:refresh-database
  5. if npm version < 7 npm install && npm run dev else npm install --legacy-peer-deps && npm run dev
  6. php artisan key:gen
  7. php artisan serve

Option 2

Prerequisite

Make sure you have docker and docker-compose installed on you machine.

  1. git clone
  2. create a .env file copy content from .env.docker and do not make any change

run following command in terminal / power shell

docker-compose up -d

when docker will finish building the containers, access the "laravel-react-app" container using following command

docker exec -it lr_app sh

now you will be inside container

run following commands

  1. composer install && composer update
  2. php artisan cron:refresh-database
  3. php artisan key:gen
  4. if npm version < 7 npm install && npm run dev else npm install --legacy-peer-deps && npm run dev

open browser and check the following address

http://localhost:8100

TODO:

  • Add Redux
  • Add Laravel Sanctum for authentication
  • User Login
  • User Register
  • Users Crud
  • Articles Crud
  • Form validation Client and Server
  • Reset Password
  • Tests
  • Upgrade to Laravel 7
  • Upgrade to React 16.13
  • docker

laravel-react's People

Contributors

moeen-basra avatar rummykhan avatar fren1100 avatar dependabot[bot] avatar alirezamirsepassi avatar darylaranha avatar yakryder avatar jacekk avatar itsjw avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.