- PHP >= 5.5 (on dev machine: 5.5.11)
- In case of problems with php extensions, view http://lumen.laravel.com/docs/installation#installation Server Requirements
- MySQL >= 5.6 (on dev machine: 5.6.16)
- composer
- nodejs
- Run in console:
git clone https://github.com/alynioke/react-microlending.git
- Add virtual host for your web-server (For xampp as DirectoryRoot and Directory put path to
public
folder of the project, as DirectoryIndexindex.php
) - Create MySQL database (for instance
microlending
) withutf8_unicode_ci
encoding. - Change following settings in .env file in the root directory according to your local database access:
- DB_DATABASE
- DB_USERNAME
- DB_PASSWORD
- Navigate to project's root directory with console.
- Run in console:
composer install
- Run in console:
php artisan migrate
- Run in console (this might take a while):
npm install
- If there will be npm errors during install try to run
npm install
again. - If there still will be npm errors try to delete whole
node_modules
folder and then runnpm install
again.
- If there will be npm errors during install try to run
- Run in console:
gulp deploy
- Go to host in web-browser.
- Profit!
- Put
<script src="/js/vendors.js"></script>
in\resources\views\index.blade.php
and \resources\views\view.blade.php before<script src="/js/page-main.bundle.js"></script>
. - Run in console: gulp