Connect Mongodb database using Node JS with express and mongoose for ReactJS App | Hands-on

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024

Комментарии • 8

  • @Vikranth4A5
    @Vikranth4A5 7 месяцев назад +1

    In backend folder you forgot to upload .env file and also you have mentioned in gitignore file

    • @CloudcoreHub
      @CloudcoreHub  7 месяцев назад +3

      Thank you for the feedback. I added .env in .gitignore file cos it is best practice not to push .env to remote repo. .env is just for local use and local deployment. You can create your .env file locally and don’t push it

  • @vishaldesai4102
    @vishaldesai4102 6 месяцев назад +1

    One question regarding this why we are using cloud database. Instead we are creating database through k8s.

    • @CloudcoreHub
      @CloudcoreHub  6 месяцев назад

      I used cloud database to host the questions prior to deployment

  • @VISHALJAIN-qp9fp
    @VISHALJAIN-qp9fp 4 месяца назад

    Hi there great project.....one question when i am running the project locally it's able to load questions from mongoDB successfully but on aws it doesn't load questions. Any reason for that ?

    • @CloudcoreHub
      @CloudcoreHub  4 месяца назад

      Check the db connection string in the code. it should point to the mongo svc and not to the localhost db

    • @VISHALJAIN-qp9fp
      @VISHALJAIN-qp9fp 4 месяца назад

      ​@@CloudcoreHub Thanks for the response. I have raised an issue on your repo for better reach with all info there including git and website link. I connection string from mongo atlas, encoded with base64 and used in secret. In pod logs also it says connection successful.
      Will be very helpful.