Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need help with sample DB #13

Open
dhanayanshankar opened this issue Nov 1, 2022 · 1 comment
Open

Need help with sample DB #13

dhanayanshankar opened this issue Nov 1, 2022 · 1 comment

Comments

@dhanayanshankar
Copy link

Unable to connect to database, please help

@olasunkanmi-SE
Copy link
Owner

olasunkanmi-SE commented Nov 14, 2022

Hi Dhanayan,
Glad to know that the repo is helpful.
I will advise you to take the latest pull from the master branch. Create a .env file and add the following
DBURL=mongodb+srv://username:password@cluster0.qj8ln.mongodb.net/ClusterName?retryWrites=true&w=majorit

JWTSECRET=yoursecret

To generate your username and password, sign up with MongoDB atlas https://account.mongodb.com/account/login

You can google how to set up a mongo DB cluster on the MongoDB atlas. Once you have a username and password and cluster name or dbname. Update the DBURL accordingly.

For the JWTSECRET you can add any secret of your choice.

Then you can use your postman to call the API endpoints, that way you can generate yours own data in your DB.

I hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants