Skip to content

Abuziarova/course-bundle-system

Repository files navigation

Local set up

On the local machine:

  1. Clone the project form repository
git clone https://github.com/Abuziarova/course-bundle-system.git
  1. Run the command in the main project directory to change basic permissions (you might need sudo)
chgrp -R 33 ./
  1. Create .env file:
cp .env.dist .env
  1. Run the docker container:
 docker compose up -d
  1. Login to the container
docker exec -it shopware /bin/bash

Inside the 'shopware' container

  1. Install dependencies
composer install 
  1. Install the system
 bin/console system:install
  1. Install the AlgotequeRecommendationSystem plugin
bin/console plugin:install --activate AlgotequeRecommendationSystem

User Guide

  • Endpoint for getting bundle quotes

    http://localhost/get-bundle-quotes
    
  • Request body structure

    {
        "topics": {
            "reading": 20,
            "math": 50,
            "science": 30,
            "history": 15,
            "art": 10
        }
    }
    
  • Example response

    {
        "quotes": {
            "provider_a": 8,
            "provider_b": 5,
            "provider_c": 10
        }
    }
    
  • CLI command for running unit tests

    ./vendor/bin/phpunit --configuration="custom/plugins/AlgotequeRecommendationSystem"
    
  • Directory for key information logs

    var/log/dev.log
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published