- Clone the repository
git clone [email protected]:mayanksdudakiya/pet-shop-api.git
- Run the
git submodule update --init --recursive
to clone both packages currency-converter and state-machine packages - Now, cd into project directory using
cd pet-shop-api
- Set your environment variable in .env file
cp .env.example .env
- Run the
composer install
command - Generate the key
php artisan key:generate
- Setup database as you like and run the
php artisan migrate:fresh --seed
- Generate private key for the JWT signing key
openssl genpkey -algorithm RSA -out jwt-key.pem
- Finally, run the
php artisan serve
php artisan l5-swagger:generate
http://127.0.0.1:8000/api/documentation
php artisan insights
./vendor/bin/phpstan analyse
php artisan test