Skip to content

vkusnayakuraga/bs-portfolio-be-nc-news

Repository files navigation

Northcoders News API

Create environment variables

We'll have two databases in this project. One for real looking dev data and another for simpler test data.

The connection to the relevant database is established in a ./db/connection.js file.

You will need to create two .env files for your project: .env.test and .env.development to determine which database to connect to. Into each, add PGDATABASE=<database_name_here> (see .env-example), with the correct database name for that environment (see /db/setup.sql for the database names). Double check that these .env files are .gitignored.

dotenv is a module that loads environment variables from a .env file into the process.env global object

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 20