This is a backend server for a news api
-
Create two files in the root directory of this project: ".env.development" & ".env.test"
-
Inside ".env.development" add the line
PGDATABASE=nc_news
, inside ".env.test" addPGDATABASE=nc_news_test
-
Double check that these .env files are .gitignored
-
(Optional) In some cases you may need be required to add a password to the .env files depending on what operating system you are using. To do this, in each of the .env files, add
PGPASSWORD=<your_psql_password>
beforePGDATABASE