From 233d8a4e7f14c5fe066037d42fbf20fb3e4fd5f6 Mon Sep 17 00:00:00 2001 From: Matt Huntington Date: Fri, 15 Sep 2023 09:45:34 -0400 Subject: [PATCH] setting up html interface --- public/app.css | 0 public/app.js | 0 public/index.html | 11 +++++++++++ server.js | 2 ++ 4 files changed, 13 insertions(+) create mode 100644 public/app.css create mode 100644 public/app.js create mode 100644 public/index.html diff --git a/public/app.css b/public/app.css new file mode 100644 index 0000000..e69de29 diff --git a/public/app.js b/public/app.js new file mode 100644 index 0000000..e69de29 diff --git a/public/index.html b/public/index.html new file mode 100644 index 0000000..7e008fb --- /dev/null +++ b/public/index.html @@ -0,0 +1,11 @@ + + + + + + + +

Outcomes Tracker

+

See how instances did in comparisson to others

+ + diff --git a/server.js b/server.js index 7fdde51..2f2fca9 100644 --- a/server.js +++ b/server.js @@ -5,6 +5,8 @@ const client = new pg.Client({ database:"outcomes_tracker" }) +app.use(express.static('public')) + app.get('/instances', async (req, res)=>{ const instances = await client.query('SELECT * FROM instances'); res.json(instances.rows);