React js Environment Setup in 14 Minutes for Beginner

แชร์
ฝัง
  • เผยแพร่เมื่อ 4 ธ.ค. 2024

ความคิดเห็น • 33

  • @bananamaker4877
    @bananamaker4877 2 หลายเดือนก่อน

    Exactly what I needed to know, thanks.

  • @cancurva
    @cancurva ปีที่แล้ว +1

    bro !!!!! just thanks alot it will be so much easier with this package

  • @mtcindianutube
    @mtcindianutube 2 ปีที่แล้ว +1

    Very good tutorial...thank you bro

  • @lokeshk6676
    @lokeshk6676 2 ปีที่แล้ว +3

    Hi thanks for the video. -f flag is used to configure .env file path. By default it points to root, if you want to move into env folder then use 'env-cmd -f ./env/.env.qa react-scripts start'

    • @Codenemy
      @Codenemy  2 ปีที่แล้ว

      It helps, Thanks

  • @DKMRFCBrlz
    @DKMRFCBrlz ปีที่แล้ว +1

    Amazing video

  • @shivanshuchauhan6026
    @shivanshuchauhan6026 2 ปีที่แล้ว +1

    thank you , very helpful

  • @arepellinagaraj2746
    @arepellinagaraj2746 2 ปีที่แล้ว +2

    Thank you so much! it helped..👍

    • @Codenemy
      @Codenemy  2 ปีที่แล้ว

      Good to hear that :)

  • @as_if
    @as_if ปีที่แล้ว +1

    That was helpful

  • @mountainman1572
    @mountainman1572 ปีที่แล้ว +1

    good work

  • @bharathia6004
    @bharathia6004 2 ปีที่แล้ว +1

    Hi bro, thanks for the video. Shall we show/hide different components based on environment? For example I have home and about page. I want to show only home page in "qa" and both in "prod".

    • @Codenemy
      @Codenemy  2 ปีที่แล้ว

      Of course you can, But better to about routing based on environment

  • @Arif-um3ph
    @Arif-um3ph 2 ปีที่แล้ว +2

    same step for build?

  • @Oceancoastwaves
    @Oceancoastwaves ปีที่แล้ว

    Thanks it helped. If we use react-router, with this .env.{name} in place do we need to take care of anything else

  • @rajnishkumarblore
    @rajnishkumarblore 2 ปีที่แล้ว +1

    Nice thanks

  • @vdingding
    @vdingding ปีที่แล้ว +1

    How to setup multiple environments to connect different databases for both nodejs and reactjs.

    • @Codenemy
      @Codenemy  ปีที่แล้ว

      The way i have created different env, you can do so and provide data base url along with credentials and refer same from React js application

  • @Amit2828Aug
    @Amit2828Aug หลายเดือนก่อน

    Bro how to deploy.env in Azure Storage Static website . We want to build react app only once in pipeline and deploy artifact in different environments pointing to different env file. Can you suggest please

  • @durga972
    @durga972 2 ปีที่แล้ว +2

    👍👍👍

    • @Codenemy
      @Codenemy  2 ปีที่แล้ว +1

      Thanks for watching :)

  • @travelwidmanish51
    @travelwidmanish51 ปีที่แล้ว

    Hi Vikas, Can you please help me to setup Azure CICD pipeline using this different .env files. Currently we have CICD setup of one single .env files but how to use the same yml files for different .env

    • @prachisharma9181
      @prachisharma9181 8 หลายเดือนก่อน +1

      Hi i have same question… did u get the answer for it.

    • @travelwidmanish51
      @travelwidmanish51 8 หลายเดือนก่อน

      @@prachisharma9181 Hey, I haven’t got the answer but I have find the solution and implemented.

    • @prachisharma9181
      @prachisharma9181 8 หลายเดือนก่อน

      Could you please help me with that,

  • @rishabhjain5135
    @rishabhjain5135 2 ปีที่แล้ว

    why do we have different apis for different environment? Why cannot we use the same api across all environment?

    • @jagdishtyagi1021
      @jagdishtyagi1021 2 ปีที่แล้ว

      because development mostly uses dummy data and buggy code and hardly deals with data that is real or live (production). qa is for features and data that is already tested or being tested by tester

  • @vickySingh-vw8fr
    @vickySingh-vw8fr 2 ปีที่แล้ว +1

    🙏🙏❤️

    • @Codenemy
      @Codenemy  2 ปีที่แล้ว

      Thanks G

  • @bacchi8252
    @bacchi8252 ปีที่แล้ว +1

    DOESNT WORK on my code, when i do npm run start when there are no .env files it creates the .env.development.local file and when i try this method to add new env such as .env.production.local it always takes the backend url of .env.development.local sigghhh

    • @Codenemy
      @Codenemy  ปีที่แล้ว +1

      Could you please clone my repo and execute once and try

    • @bacchi8252
      @bacchi8252 ปีที่แล้ว +1

      @@Codenemy it worked, thank you