radudiaconu0 / petshop-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install dependencies

composer update

Generate the RSA Key Pair

You can use OpenSSL to generate the RSA key pair.

Install OpenSSL: If you don't have OpenSSL installed, you can download it from https://slproweb.com/products/Win32OpenSSL.html

Generate the Private Key: Open a Command Prompt and run the following command:

openssl genpkey -algorithm RSA -out private.key

Generate the Public Key: Run the following command to generate the public key from the private key:

openssl rsa -pubout -in private.key -out public.key

You should now have two files: private.key and public.key.

move them to storage/app/keys

Copy the .env.example file to .env

cp .env.example .env

Generate the application key

php artisan key:generate

Run the database migrations

php artisan migrate

Run the database seeder

php artisan db:seed

Start the local development server

php artisan serve

You can now access the server at http://localhost:8000

Generate documentation

php artisan l5-swagger:generate

access open api documentation

http://localhost:8000/api/documentation

About


Languages

Language:PHP 80.2%Language:Blade 19.7%Language:JavaScript 0.1%