E-commerce API
Getting started
Prerequisites
Installation
- Clone the repo
git clone https://github.com/IslamAliMuhammad/e-commerce-api.git
- Enter the project folder
cd e-commerce-api
- Installing dependencies
composer install
- Set the application key
php artisan key:generate
- Install Laravel Sail's default Docker Compose file
php artisan sail:install
- Run
cp .env.example .env
and set your enviournment variables to .env file. - Create and start containers
sudo ./vendor/bin/sail up
- Run and seed database migrations
sail php artisan migrate --seed
Testing
-
Create dummy data for your database
sail php artisan db:seed --class TestSeeder
Postman collection
Postman collection is available at the root folder under the name e-commece-api.postman_collection.json