Skip to content

Commit

Permalink
hide data
Browse files Browse the repository at this point in the history
  • Loading branch information
smallnumbers0 committed Apr 15, 2024
1 parent bd9c5e1 commit 84b77c0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
package-lock.json
queries.sql
.env
10 changes: 8 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ import express from "express";
import bodyParser from "body-parser";
import pg from "pg";

import dotenv from 'dotenv';
dotenv.config();

const secret = process.env.SECRET
const postgresPort = process.env.PORT

const db = new pg.Client({
user: "postgres",
host: "localhost",
database: "runproject",
password: "mango0920",
port: 5432,
password: secret,
port: postgresPort,
})

db.connect();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"dependencies": {
"body-parser": "^1.20.2",
"dotenv": "^16.4.5",
"ejs": "^3.1.10",
"express": "^4.19.2",
"nodemon": "^3.1.0",
Expand All @@ -11,7 +12,6 @@
"version": "1.0.0",
"main": "index.js",
"type": "module",
"devDependencies": {},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
8 changes: 4 additions & 4 deletions public/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ img {
justify-content: center;
align-items: center;
gap: 0.5rem;
background-color: rgb(31, 26, 26);
margin: 0 auto;
border-radius: 5px;
padding: 1rem;
Expand All @@ -54,11 +53,12 @@ footer, #title {
#title {
margin-top: 1rem;
font-family: "Open Sans", sans-serif;
font-size: 2rem;
font-weight: bold;
}

footer {
position: absolute;
bottom: 0;

width: 100%;
height: 2.5rem;
}
Expand All @@ -74,7 +74,7 @@ html {

#location-text {
font-weight: bold;
font-size: 2rem;
font-size: 1.5rem;
font-family: "Open Sans", sans-serif;
}

Expand Down

0 comments on commit 84b77c0

Please sign in to comment.