Skip to content

Latest commit

 

History

History
85 lines (54 loc) · 2.54 KB

README.md

File metadata and controls

85 lines (54 loc) · 2.54 KB

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@[email protected]: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. Launch your application

php artisan serve

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