Loading environment variables from .env

.env file:

MY_URL_1=localhost:8080
MY_URL_2=localhost:3000

shell command:

export $(cat .env | xargs)

result:

$ export
MY_URL_1=localhost:8080
MY_URL_2=localhost:3000