PHP Classes

File: README.md

Recommend this page to a friend!
  Classes of Hicri   Laravel Simple E-commerce   README.md   Download  
File: README.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: Laravel Simple E-commerce
Show and sell products on a Web site
Author: By
Last change:
Date: Yesterday
Size: 1,130 bytes
 

Contents

Class file image Download

Contents

PHP
Composer
Docker
MySQl
Redis
Jwt
Nginx
Testing
Rate limiting

Installation

docker compose up -d --build 
docker compose exec app bash
chmod -R 777 /var/www/html/storage/ /var/www/html/bootstrap/
cp .env.example .env
composer install
docker compose exec app php artisan jwt:secret
docker compose exec app php artisan migrate:fresh --seed

env config

  • mysql
    DB_CONNECTION=mysql
    DB_HOST=db
    DB_PORT=3306
    DB_DATABASE=laravel
    DB_USERNAME=laravel
    DB_PASSWORD=laravel
    
  • redis
    CACHE_DRIVER=redis
    REDIS_CLIENT=predis
    REDIS_HOST=redis
    REDIS_PASSWORD=null
    REDIS_PORT=6379
    
    ### Usage
    
    Insomnia_2024-12-13.json

Testing

cp .env .env.testing
docker-compose exec app php artisan config:clear
docker-compose exec app php artisan cache:clear
docker-compose exec app php artisan config:cache
docker-compose exec app php artisan migrate:fresh --seed --env=testing
docker-compose exec app php artisan test
  • env.testing
    APP_ENV=testing
    DB_CONNECTION=mysql
    DB_HOST=db
    DB_PORT=3306
    DB_DATABASE=laravel
    DB_USERNAME=laravel
    DB_PASSWORD=laravel