Skip to content

Commit 9b058b3

Browse files
authored
Merge pull request #254 from commercetools/newrelic-integration-update
DEVX-430 New Relic integration update
2 parents 5873513 + 63a44e2 commit 9b058b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+780
-46
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Symfony demo app for Datadog
2+
3+
This Demo is to show how PHP SDK can be used in a Symfony application for a Docker environment with monitoring tools enabled.
4+
5+
For now, we configured the docker environment for Datadog.
6+
7+
## Requirements
8+
9+
- PHP at least 8.1
10+
- Symfony 6
11+
- Docker
12+
- Registration in Datadog
13+
14+
## Installation
15+
16+
1. Clone/Download the example folder.
17+
2. Navigate to the path `symfony-app-datadog/`.
18+
19+
## Using the Symfony Demo app in a Docker Environment
20+
21+
### Configuring the Demo App
22+
23+
1. Open the Terminal
24+
2. Run `composer install` or `composer update`
25+
3. Copy the [.env.sample](docker/php/.env.sample) file to the root folder renaming it to `.env`. So in the root folder run `cp docker/php/.env.sample .env`.
26+
4. Fill the `.env` file with the missing data.
27+
5. Run `composer dump-env prod`
28+
29+
### Preparing the Docker environment
30+
31+
1. Always in the Root of the project
32+
2. Run `docker compose up`
33+
3. Wait until the environment is running
34+
35+
### Navigate the application
36+
37+
1. Navigate to [http://localhost:8080/products](http://localhost:8080/products) or [http://localhost:8080/categories](http://localhost:8080/categories)
38+
2. The result would be an array objects containing products or categories.
39+
3. If it's not make sure that in Merchant Center in the project key selected (see the environment variable for the client credentials in the point 3 of the Installation section), there would be some data for products and categories.
40+
4. Go in the Datadog UI to see the monitoring of the API calls.
41+
42+
The docker configuration files will be found in the `docker/php` folder and the `docker-compose.yml` in the `symfony-app/` folder so they can be used in your application.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)