The petshop api
To run this project simply clone this rep
git clone git@github.com:SlimGee/petshop-api.gitInstall dependencies
cd petshop-apicomposer installyarn installThis project uses spatie/laravel-pdf to generate pdf files, which uses puppeteer. To be on the safe side you might have to install chromium on your machine. You can do that by running the following command
yarn puppeteer browsers install chromeBefore you can use this project you need to create a .env file in the root directory of the project. You can copy the .env.example file and rename it to .env.
cp .env.example .envConfigure the database connection in the .env file
Migrate the database
php artisan migrateSeed the database
php artisan db:seedIf you have Laravel Valet installed you can run the project by running the following command
valet openOtherwise you use the built-in server
php artisan serveAssuming you have valet installed, you can access the documentation by visiting http://petshop-api.test/api/swagger
Or you can visit the /api/swagger route on your local server