Is it safe for me to host my project on github and heroku?
Because I think Some of these projects will need mongodb in that case it’s not safe to upload my private key for mongodb.
I want to use github because of obvious reasons.
Is it safe for me to host my project on github and heroku?
Because I think Some of these projects will need mongodb in that case it’s not safe to upload my private key for mongodb.
I want to use github because of obvious reasons.
Hello there,
Yes, it is ok for you to use GitHub + Heroku.
No, it is not ok for you to upload your API/URI keys/passwords to GitHub. However, you do not need to do this to be able to use a database.
This is what I do (and I assume, most other devs):
.gitignore file with .env in it.env file with your secret keys (example: MONGO_URI=mongo@me.1234)process.env.MONGO_URI
I suggest you research:
.gitignore files.env filesHope this clarifies.