# How to connect p5.js web editor database to my mongoDB GUI

**URL:** <https://discourse.processing.org/t/how-to-connect-p5-js-web-editor-database-to-my-mongodb-gui/43594>\
**Category:** Coding Questions\
**Created:** [December 31, 2023, 6:05pm UTC](https://discourse.processing.org/t/how-to-connect-p5-js-web-editor-database-to-my-mongodb-gui/43594 "2023-12-31T18:05:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DNotNice](https://avatars.discourse-cdn.com/v4/letter/d/6bbea6/32.png) [@DNotNice](https://discourse.processing.org/u/DNotNice)\
**Post date:** [December 31, 2023, 6:05pm UTC](https://discourse.processing.org/t/how-to-connect-p5-js-web-editor-database-to-my-mongodb-gui/43594/1 "2023-12-31T18:05:03Z")

</div>

I wanted to see how the project stores data in mongodb database so I followed all the steps as provided in the contributer docs and built the project using Docker .Everything works fine , but can anyone tell me how can I connect the proj to my MongoDB Compass i.e Mongo GUI (to see how data is stored in db) as it doesn’t expose a port for database.

---

<div class="post-metadata">

**Author:** ![JiyaHana](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/jiyahana/32/19209_2.png) [@JiyaHana](https://discourse.processing.org/u/JiyaHana)\
**Post date:** [January 1, 2024, 8:36am UTC](https://discourse.processing.org/t/how-to-connect-p5-js-web-editor-database-to-my-mongodb-gui/43594/2 "2024-01-01T08:36:34Z")

</div>

You can use docker port forwarding feature.  
`docker run -p 27017:27017 your_mongodb_image_name`

After that you can connect MongoDB Compass to `localhost:27017` to access the database used in your p5.js web editor project.
