How to Set Up

  1. Clone the Git Repository:

    Run git clone https://github.com/jmkolawole/laravel-react-fullstack-application-with-passport-redux-and-material-ui.git

  2. cd into the project directory:

    Run cd laravel-react-fullstack-application-with-passport-redux-and-material-ui

Backend

  1. cd into the "Backend" folder: Run cd Backend

  2. Copy .env.example file and rename as .env; Alternatively, run cp .env.example .env

  3. Edit database credentials in your newly generated/created .env file

  4. Run composer install to install all libraries and dependencies in the composer.lock file

  5. Run php artisan key:generate to set the APP_KEY value in the .env file

  6. Having created a database, and specifying the same with the right credentials in your .env file, run php artisan migrate to create the tables

  7. Run php artisan serve to run the PHP development server. Alternatively, you can run your project with XAMPP or WAMP.

Frontend

  1. cd into the "Frontend" folder: Run cd Frontend

  2. Run npm install to download all packages and dependencies needed for our client

  3. While making sure that the API (Laravel) Server is up and running, run npn start to start your react application

  4. Congratulations!!!