React: configuration with .env file | Beginner tutorial 2019
In this video, you will learn how to use .env files to create the configuration in React.JS.
Support me to get a new laptop to create better quality content:
————————————————————————————————–
SASS Official website:
PHPStorm:
————————————————————————————————–
Two months for free on Skillshare:
SASS course:
Get Started with SCSS (Text tutorial):
————————————————————————————————–
About me:
Hello, I’m Matilde I’m a web developer making daily content related to web development. I also spent a great deal of time on medium to write text content related to programming. I’m from Denmark but I’ve relocated to London.
Some of the main topics you will see to be covered on this channel is ReactJS, Laravel, SCSS and just basic tutorials in programming. My goal is to help you advance your coding skills and in case you have a code issue related to Laravel, ReactJS or similar please email me or comment on my videos to help me. I’m also creating series sometimes where I’ll build teach a full free course in relation to programming or for example how to build a blog which is on my channel.
Subscribe to my YouTube channel:
————————————————————————————————–
Equipment:
Microphone: Røde NT-USB
Video Recorder: QuickTime Player
Video Editor: Adobe Premiere Pro.
Nguồn: https://ftlinuxcourse.com
Xem thêm bài viết khác: https://ftlinuxcourse.com/cong-nghe
nice one , but did have to add -f or else didnt work. but wonderful
why we use NPX insisted of NPM ?
Can you show a tutorial on how to hide an API key?
Hi! Thank you for that short tutorial!
When I did I got: "Error: Unable to locate env file at default locations …."
To solve it I had to add the "-f" flag after each "env-cmd". So for example: "start": "env-cmd -f .env.development react-scripts-ts start"
Thanks!
we can use variables without .env npm package . https://medium.com/@tacomanator/environments-with-create-react-app-7b645312c09d
can i use this with the reactjs webpack project?
This does work but the loading is very slow and only on env-cmd version 8.0.2. I was using the latest version "env-cmd": "^9.0.2" and this did not work. Can you explain how to make it work with latest version and if the implementation is different , can you please paste code or update video.
React or Vue ?
How about an env file for my personal token? I folowed the steps in this tutorial and didnt work: https://www.robinwieruch.de/react-with-graphql-tutorial/