coding-allies / projects-platform-frontend

She's Coding Projects collaboration platform for womxn in tech.
http://projects.shescoding.org/#/
MIT License
9 stars 59 forks source link

Add env variables #66

Open ceyuen opened 4 years ago

ceyuen commented 4 years ago

59

To make env variables work:

  1. Add a .env file in root folder then add this line REACT_APP_API_URL=http://shescoding-projects.us-east-1.elasticbeanstalk.com
  2. Add a .env.local file in root folder REACT_APP_API_URL=http://127.0.0.1:8000

Followed this article: https://medium.com/better-programming/using-environment-variables-in-reactjs-9ad9c5322408