Skip to content

yuracher/scs-test-task

Repository files navigation

SCS Test Task

Setup Instructions

  1. Copy the example files and adjust if necessary:

    cp .env.example .env
    cp compose.override.example.yaml compose.override.yaml
    
  2. Run Docker containers:

    Pull the required images and start the application:

    docker compose pull
    docker compose up -d
    
  3. Access the API:

    The API will be available at:

    http://localhost:<port>/
    

    An example request:

    curl -X POST http://localhost:<port>/ \
    -H "Content-Type: application/json" \
    -d '{
    "source": "my_source",
    "payload": {
    "email": "[email protected]",
    "name": "John Doe"
    }
    }'
    

    Replace with the port number specified in compose.override.yaml

    Running tests inside Docker:

    docker compose exec app ./vendor/bin/phpunit --color
    
  4. Stop the application:

    To stop and remove containers:

    docker compose down
    

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published