-
Copy the example files and adjust if necessary:
cp .env.example .env cp compose.override.example.yaml compose.override.yaml
-
Run Docker containers:
Pull the required images and start the application:
docker compose pull docker compose up -d
-
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
-
Stop the application:
To stop and remove containers:
docker compose down
-
Notifications
You must be signed in to change notification settings - Fork 0
yuracher/scs-test-task
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published