- Frontend: Bootstrap
- Backend: Laravel
- Payments: Stripe API
If you want to test the site with real payments:
- Create a new Account on Stripe and generate a keypair
- Change PUBLIC KEY in
public/src/js/checkout.js
- Change PRIVATE KEY in
Stripe::setApiKey('')
- Check out the official Testdata provided by Stripe
- Execute
composer install
in the project directory - Change the name of
.env.example
to.env
- Open the File and assign
shop
to the VariableDB_DATABASE
- Execute
php artisan key:generate
in the project directory - Open:
localhost/phpmyadmin
and create a DB:shop
- Execute
php artisan migrate
to create all pre-defined tables - Execute
php artisan db:seed
to fill the tables with pre-defined data - Execute
npm install
andnpm run dev
ornpm run watch
- Have fun on:
localhost/<project_dir>/shirt-shop/public
php artisan make:model <name> -m
- Create a DB-model + migration-filephp artisan make:migration <name>
- Create a migration-file by itselfphp artisan make:seed <name>
- Create a template for a seederphp artisan make:controller <name>
- Create a controller for HTTP related affairsphp artisan make:middleware <name>
- Create a new middlewarephp artisan migrate
- Create defined tables in the DBphp artisan db:seed
- Fills tables up with dataphp artisan migrate:refresh --seed
- Delete existing tables, create new ones and seed them