This application serves as a backend for the next-js frontend counterpart https://github.com/chrismcintosh/hot-metal-market-frontend. It uses Laravel Filament as an admin panel to manage products.
This application uses Stripe to process payments. You'll need to populate your stripe credentials into the .env
file.
All the payment data is handled using webhooks you can find the webhooks in /app/Jobs/StripeWebhooks/
.
You'll need to have a valid Laravel environment to run it in. For M1 Macs I find Laravel Valet with DBngin to work well. For Intel Macs Laravel Homestead worked well for me.
Once you have a Laravel environment set up and the project cloned
- Run
composer install
from the root directory - Run
npm install
from the root directory - Run
php artisan migrate:fresh --seed
this should migrate the database and run the initial database seed. The email in the seeder is set tosample@example.com
and the password ispassword