Clone the Git Repository:
Run git clone https://github.com/jmkolawole/laravel-react-fullstack-application-with-passport-redux-and-material-ui.git
cd into the project directory:
Run cd laravel-react-fullstack-application-with-passport-redux-and-material-ui
cd into the "Backend" folder:
Run cd Backend
Copy .env.example file and rename as .env;
Alternatively, run cp .env.example .env
Edit database credentials in your newly generated/created .env file
Run composer install
to install all libraries and dependencies in the composer.lock file
Run php artisan key:generate
to set the APP_KEY value in the .env file
Having created a database, and specifying the same with the right credentials in your .env file, run php artisan migrate
to create the tables
Run php artisan serve
to run the PHP development server. Alternatively, you can run your project with XAMPP or WAMP.
cd into the "Frontend" folder:
Run cd Frontend
Run npm install
to download all packages and dependencies needed for our client
While making sure that the API (Laravel) Server is up and running, run npn start
to start your react application
Congratulations!!!