diff --git a/docs/30-quick-start.mdx b/docs/30-quick-start.mdx index c6007f7..4b80518 100644 --- a/docs/30-quick-start.mdx +++ b/docs/30-quick-start.mdx @@ -18,6 +18,21 @@ composer create-project symfony/skeleton rentals + + With MacOS, ensure that OpenSSL is installed on your system. You can install it using Homebrew with the following command: + + ```shell + brew install openssl + ``` + + Next, install pkgconf using Homebrew, as mentioned in the [Homebrew documentation](https://formulae.brew.sh/formula/pkgconf): + + ```shell + brew install pkgconf + ``` + + Once installed, you can start with mongodb driver installation for PHP + ```shell cd rentals pecl install mongodb @@ -66,7 +81,7 @@ doctrine_mongodb: auto_generate_hydrator_classes: true connections: default: - server: '%env(resolve:MONGODB_URL)%&appName=devrel.content.php' + server: '%env(resolve:MONGODB_URL)%' options: {} default_database: '%env(resolve:MONGODB_DB)%' document_managers: diff --git a/docs/40-structure-site/1-app-overview.mdx b/docs/40-structure-site/1-app-overview.mdx index 21f3574..abce1fb 100644 --- a/docs/40-structure-site/1-app-overview.mdx +++ b/docs/40-structure-site/1-app-overview.mdx @@ -26,29 +26,29 @@ Collections: }, "name": "Fahey, Leannon and Gleichner", "location": "Elisabethland", - "night_cost": 415, + "nightCost": 415, "availability": [ { - "start_date": { + "startDate": { "$date": "2024-01-01T00:00:00.000Z" }, - "end_date": { + "endDate": { "$date": "2024-04-16T00:00:00.000Z" } }, { - "start_date": { + "startDate": { "$date": "2024-04-21T00:00:00.000Z" }, - "end_date": { + "endDate": { "$date": "2024-04-25T00:00:00.000Z" } }, { - "start_date": { + "startDate": { "$date": "2024-05-01T00:00:00.000Z" }, - "end_date": { + "endDate": { "$date": "2025-01-01T00:00:00.000Z" } } @@ -63,14 +63,14 @@ The document above represents a rental listing. It has a name, location, night_c "_id": { "$oid": "65dca21600a610ba8536b343" }, - "rental_id": "65dca21600a610ba8536b343", - "rental_name": "Fahey, Leannon and Gleichner", - "night_cost": 415, - "total_cost": 1245, - "start_date": { + "rental": {"$ref":"rentals","$id":{"$oid":"65dca21600a610ba8536b343"}}, + "rentalName": "Fahey, Leannon and Gleichner", + "nightCost": 415, + "totalCost": 1245, + "startDate": { "$date": "2024-04-17T00:00:00.000Z" }, - "end_date": { + "endDate": { "$date": "2024-04-20T00:00:00.000Z" } } diff --git a/docs/40-structure-site/1-initial-setup.mdx b/docs/40-structure-site/1-initial-setup.mdx index 9fdacdf..ef2d5a2 100644 --- a/docs/40-structure-site/1-initial-setup.mdx +++ b/docs/40-structure-site/1-initial-setup.mdx @@ -396,11 +396,11 @@ for (let i = 0; i < 100; i++) { rentals.push({ name: falso.randCompanyName(), location: falso.randCity(), - night_cost: falso.randNumber({ min: 50, max: 500 }), // Random cost between 50 and 500 + nightCost: falso.randNumber({ min: 50, max: 500 }), // Random cost between 50 and 500 availability: [ { - start_date: new Date('2024-01-01'), - end_date: new Date('2026-01-01') + startDate: new Date('2024-01-01'), + endDate: new Date('2026-01-01') } ] });