Skip to content

Commit

Permalink
Fixes for Rishabh review
Browse files Browse the repository at this point in the history
  • Loading branch information
Pash10g committed Mar 13, 2024
1 parent a73b703 commit 32c3c18
Show file tree
Hide file tree
Showing 7 changed files with 19 additions and 8 deletions.
4 changes: 0 additions & 4 deletions docs/30-quick-start.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,6 @@ composer create-project symfony/skeleton rentals
<TabItem value="Windows">
With Windows, users will need to fetch the DLL, as mentioned [here](https://www.php.net/manual/en/mongodb.setup.php) and add it to their PHP installation.

```shell
cd rentals
pecl install mongodb
```
</TabItem>
</Tabs>

Expand Down
3 changes: 2 additions & 1 deletion docs/40-structure-site/1-initial-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ The only methods here are getters and setters for each property. Those will be u

## Generate Data for the rentals collection (Optional)

1. Use Atlas data explorer to upload the following [rentals.json](https://raw.githubusercontent.com/mongodb-developer/symfony-mongodb-atlas-rentals/main/data/symfony.rentals.json) array into the "Insert Document" json array to upload initial rentals
1. Use [Atlas data explorer](https://www.mongodb.com/docs/atlas/atlas-ui/documents/#insert-documents) to upload the following [rentals.json](https://raw.githubusercontent.com/mongodb-developer/symfony-mongodb-atlas-rentals/main/data/symfony.rentals.json) array into the "Insert Document" json array to upload initial rentals

2. We can use the [mongosh](https://www.mongodb.com/docs/mongodb-shell/install/) shell to insert some data into the rentals collection. We will also use the falso data generator to generate some random data for the rentals collection.

Expand All @@ -407,6 +407,7 @@ Now we will run a script to generate some random data for the rentals collection
```javascript
const falso = require('@ngneat/falso');

// Switch to database named
use symfony;

const rentals = [];
Expand Down
2 changes: 1 addition & 1 deletion docs/50-testing/1-test-list.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Sometimes you may need to clear the cache before you can see the changes in the
php bin/console cache:clear
```

The following diagra shows the sequence of requests and responses that are made when the `http://localhost:8080` is accessed in the browser:
The following diagram shows the sequence of requests and responses that are made when the `http://localhost:8080` is accessed in the browser:

![List all rentals](../../static/img/list-rentals.png)

Expand Down
16 changes: 15 additions & 1 deletion docs/summary.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,18 @@ Congratulations! Following this tutorial, you have successfully:
* Managed the data with MongoDB
* Tested and deployed the application

Visit the [MongoDB Developer Center](https://mongodb.com/developer/?utm_campaign=devrel&utm_source=workshop&utm_medium=cta&utm_content=soccer_workshop&utm_term=stanimira_vlaeva) for more useful information and tutorials.
## Useful resources
- [MongoDB PHP Library](https://docs.mongodb.com/drivers/php)
The MongoDB PHP Library provides a library for interacting with MongoDB in PHP.
- [Doctrine MongoDB ODM](https://www.doctrine-project.org/projects/doctrine-mongodb-odm/en/2.2/index.html)
Doctrine MongoDB ODM is a library for storing documents in MongoDB.
- [MongoDB Atlas](https://www.mongodb.com/cloud/atlas)
MongoDB Atlas is a fully-managed cloud data platform developed by the same people that build MongoDB.
- [Symfony](https://symfony.com/doc/current/index.html)
Symfony is a set of reusable PHP components and a PHP framework for web projects.
- [PHP](https://www.php.net/manual/en/index.php)
PHP is a popular general-purpose scripting language that is especially suited to web development.
- [Composer](https://getcomposer.org/doc/00-intro.md)
Composer is a dependency manager for PHP.
- [MongoDB Developer Center](https://www.mongodb.com/developer/search/?s=&language=PHP&sortMode=0)
The MongoDB Developer Center is a great place to find resources for PHP developers using MongoDB.
2 changes: 1 addition & 1 deletion docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const footerLinks = [
},
{
label: "Developer Center",
href: `https://www.mongodb.com/developer?${utmParams}`,
href: `https://www.mongodb.com/developer/languages/php?${utmParams}`,
},
{
label: "MongoDB University",
Expand Down
Binary file modified static/img/create-rentals.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed static/img/create-rentals_.png
Binary file not shown.

0 comments on commit 32c3c18

Please sign in to comment.