yauhofung / MovieSearchEngine

https://ttp0-cap.herokuapp.com/
0 stars 2 forks source link

.env Variable name. #23

Closed ddesir closed 3 years ago

ddesir commented 3 years ago

How are we formatting the .env. I propose REACT_APP_API_KEY or REACT_APP_MOVIE_API and to confirm, we're placing it at root, right?

yauhofung commented 3 years ago

According to the SearchBar.js file, we're accessing our API key via this.apiKey = process.env.REACT_APP_API. So your .env file should contain REACT_APP_API="<api_key>" such that <api_key> is where you will put your actual TMDb API key.