# React Vidly App Deployment issue SOLVED

**URL:** <https://forum.codewithmosh.com/t/react-vidly-app-deployment-issue-solved/508>\
**Category:** Uncategorized\
**Created:** [November 4, 2020, 10:32pm UTC](https://forum.codewithmosh.com/t/react-vidly-app-deployment-issue-solved/508 "2020-11-04T22:32:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andre](https://avatars.discourse-cdn.com/v4/letter/a/6de8d8/32.png) [@Andre](https://forum.codewithmosh.com/u/Andre)\
**Post date:** [November 4, 2020, 10:32pm UTC](https://forum.codewithmosh.com/t/react-vidly-app-deployment-issue-solved/508/1 "2020-11-04T22:32:01Z")

</div>

I there! Just had this issue and saw that was asked many times all over the internet, so since I solved my problem, I thought it could be useful for those struggling.

_Issue 1:_ mLab bought by MongoDB Atlas - config MongoDB Atlas

_Issue 2:_ React Vidly App Deployment working on MongoDB Atlas but not connecting to Heroku

**Solution**

_Issue 1:_ just install MongoDB Atlas and follow the steps (is pretty simple)

_Issue 2:_

This way worked for me:

1. Import **genres** (JSON object) for MongoDB Atlas Database - you can do it with MongoDB Compass, which facilitates the management of your MongoDB Database objects;  
**Here’s the link:** [https://www.mongodb.com/blog/post/import-export-your-data-with-compass](https://www.mongodb.com/blog/post/import-export-your-data-with-compass)

2. Then, what happened to me was the connection to MongoDB Atlas was ok, but I didn’t get any data from the database I had created. This problem is because the connection string was pointing to a database called **test by default.**  
In your MongoDB Atlas go to: clusters \> connect \> connect your application \> copy the connection string (something like this: mongodb+srv://:@.25vz6.mongodb.net/?retryWrites=true&w=majority) AND substitute with your user password and **with the name of your database.**  
**Here’s the link:** [https://stackoverflow.com/questions/56397921/mongodb-atlas-connection-working-but-not-displaying-data-in-heroku](https://stackoverflow.com/questions/56397921/mongodb-atlas-connection-working-but-not-displaying-data-in-heroku)

3. **Config heroku** in vidly-api-node (showed in video number 9 - Setting Environment Variables) - heroku config:set vidly\_bd (…)

Now this should be working 🙂
