/phpbootcamp-shop-talent-it-march-2017

phpbootcamp-shop-talent-it-march-2017 created by GitHub Classroom

Primary LanguagePHP

in2it PHP Bootcamp

Laravel Shop

This is a shop build on top of Laravel using Aimeos Laravel Package.

This project is part of in2it PHP Bootcamp training course. Feel free to contact us for more details and to schedule a training at your offices (BENELUX only).

Requirements

Please check you meet the following requirements:

  • PHP 5.6.4 (or higher)
  • MySQL 5.7.16 (or higher)

Getting started

All stories have a beginning and so does this project. You can read the Laravel Documentation and Aimeos Documentation to get started quickly, but we've done all the grunt work for you.

Just follow these steps and you should be all-right.

1. Set up your MySQL Database

This application requires a database, the easiest way is to set up MySQL Community Server and add the following:

  • database "homestead"
  • username "homestead@localhost"
  • password "secret"

These are the default settings for Laravel and are working great for the goal of this training.

mysql -uroot -p
password: ******

mysql> create database homestead;
mysql> create user homestead@localhost identified by 'secret';
mysql> grant all on homestead.* to homestead@localhost;
mysql> \q

2. Install this repo

If you didn't received an invitation from us for our classroom, please contact @dragonbe or @bartmcleod to provide you the invitation link.

cd /path/to/workspace
git clone git@git@github.com:in2it-training-<username>/phpbootcamp-shop.git phpbootcamp-shop
cd phpbootcamp-shop

3. Install the PHP packages

You need Composer to continue as we're needing several packages to continue.

composer install

4. Set environment settings

cp .env.example .env

Depending on your database settings, if you followed from the beginning these default settings are going to be enough.

Next thing you need to do is set an application key

php artisan key:generate

5. Update the Aimeos installation

In the last step you must now execute these artisan commands to get a working or updated Aimeos installation:

php artisan vendor:publish
php artisan migrate
php artisan aimeos:setup --option=/default/demo:1
php artisan aimeos:cache

6. Launch your application

php artisan serve

Now point your browser to localhost:8000/list to see the webshop application.

That's it!!!