|
|
|
@ -2,7 +2,9 @@ const express = require('express');
|
|
|
|
const app = express();
|
|
|
|
const app = express();
|
|
|
|
const pg = require('pg');
|
|
|
|
const pg = require('pg');
|
|
|
|
const client = new pg.Client({
|
|
|
|
const client = new pg.Client({
|
|
|
|
database:"outcomes_tracker"
|
|
|
|
database:"outcomes_tracker",
|
|
|
|
|
|
|
|
user:'matt',
|
|
|
|
|
|
|
|
password:'matt'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
app.use(express.static('public'))
|
|
|
|
app.use(express.static('public'))
|
|
|
|
@ -13,6 +15,6 @@ app.get('/instances', async (req, res)=>{
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
client.connect();
|
|
|
|
client.connect();
|
|
|
|
app.listen(3000, ()=>{
|
|
|
|
app.listen(3003, ()=>{
|
|
|
|
console.log('listening');
|
|
|
|
console.log('listening');
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|