IslamAliMuhammad / ecommerce-api

E-commerce API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

E-commerce API

Getting started

Prerequisites

Installation

  1. Clone the repo
    git clone https://github.com/IslamAliMuhammad/e-commerce-api.git
  2. Enter the project folder
    cd e-commerce-api
  3. Installing dependencies
    composer install
  4. Set the application key
    php artisan key:generate
  5. Install Laravel Sail's default Docker Compose file
    php artisan sail:install
  6. Run cp .env.example .env and set your enviournment variables to .env file.
  7. Create and start containers
    sudo ./vendor/bin/sail up
  8. 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

License

MIT

About

E-commerce API


Languages

Language:PHP 58.0%Language:HTML 34.0%Language:Blade 7.6%Language:Shell 0.3%