- Assuming you will run in a webserver either on windows (XAMPP/WAMPP/etc) or on Linux where you already have a webserver installed there (Apache2/NGINX/etc).
- PHP - via your webserver
- Mysql - via your webserver
- Composer - PHP Dependency Manager, if you don't have it, you can download it right here.
- clone this repo (
git clone https://github.com/ereztdev/auction-house.git
) into your webserver - switch into the repo directory where you pulled the repo: (
cd auction-house
) - Install PHP dependencies (
composer install
) - environment:
- In the project root, you will have to create an
.env
environment file:cp .env.example .env
- in MySQL create a database and fill out that DB name here (
DB_DATABASE
), do the same for the DB username and password - Now our environment is set. Let's go ahead and seed our database, run
php artisan migrate
. - Now let's seed our DB
php artisan db:seed --class=DatabaseSeeder
.
- In the project root, you will have to create an
- All tests are centralized into one central test for:
- Add item
- Different bids
- fetching an item with a custom JSON
- Run the tests
php artisan test
Thanks, Erez