Skip to content

Commit

Permalink
commit add pg and dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
softacoder committed Sep 26, 2023
1 parent 870f377 commit 2ee135f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/server.js
Original file line number Diff line number Diff line change
@@ -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;

Expand Down
2 changes: 1 addition & 1 deletion server/videotable.sql
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ CREATE TABLE videos
title VARCHAR(50) NOT NULL,
url VARCHAR(120) NOT NULL,
rating integer not null
)
);

0 comments on commit 2ee135f

Please sign in to comment.