From 2ee135f6b182ae7079dcb66af1e54f1fbd5de7ed Mon Sep 17 00:00:00 2001 From: softacoder <113185323+softacoder@users.noreply.github.com> Date: Tue, 26 Sep 2023 12:34:24 +0100 Subject: [PATCH] commit add pg and dotenv --- server/server.js | 2 +- server/videotable.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/server.js b/server/server.js index f5f47f3390..cae20e4bf0 100644 --- a/server/server.js +++ b/server/server.js @@ -1,8 +1,8 @@ // update8.this version has databse connection and in videotable.sql sql code. +require("dotenv").config(); const express = require("express"); const cors = require("cors"); const { Pool } = require("pg"); -require("dotenv").config(); const app = express(); const port = process.env.PORT || 5000; diff --git a/server/videotable.sql b/server/videotable.sql index 7c6013fc40..a44a410f1f 100644 --- a/server/videotable.sql +++ b/server/videotable.sql @@ -4,4 +4,4 @@ CREATE TABLE videos title VARCHAR(50) NOT NULL, url VARCHAR(120) NOT NULL, rating integer not null -) \ No newline at end of file +); \ No newline at end of file