Skip to content
This repository was archived by the owner on Aug 17, 2024. It is now read-only.

NW5 - LEEDS - CUNEYT TURKER - SQL - WEEK - 3 - #150

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions 2-api/cyf-ecommerce-app/.env_sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
PGHOST=PUT_YOURS_INFO
PGUSER=PUT_YOURS_INFO
PGDATABASE=PUT_YOURS_INFO
PGPASSWORD=PUT_YOURS_INFO
PGPORT=PUT_YOURS_INFO
2 changes: 2 additions & 0 deletions 2-api/cyf-ecommerce-app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules
.env
5 changes: 5 additions & 0 deletions 2-api/cyf-ecommerce-app/db/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const { Pool } = require("pg");

const db = new Pool(); //get configs automatically from .env using require("dotenv").config();

module.exports = db;
Loading