Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
c9c6e3d
created server side
Apr 6, 2020
393ccd5
saved express and pg
Apr 6, 2020
e5f9c0e
Created homepage and register page
Apr 7, 2020
4e15f3f
Assigned homepage view to root path
Apr 7, 2020
758e280
fixed form submission bug
Apr 7, 2020
9d4faac
added completed views
Apr 7, 2020
2a1eb93
test commit
Apr 7, 2020
3a1e1c0
test commit
Apr 7, 2020
74041e6
test commit
Apr 7, 2020
a2a525f
test commit
Apr 7, 2020
502b7ea
test commit
Apr 7, 2020
98a8ff9
test commit
Apr 7, 2020
62658c2
test commit
Apr 7, 2020
fc959b2
activated task buttons
Apr 7, 2020
884056e
test commit
Apr 7, 2020
611fe79
test commit
Apr 7, 2020
ee3a03e
added full task button functionality
Apr 7, 2020
03cdcf5
added page reload on button clicks
Apr 7, 2020
8cccde2
added update functionality
Apr 7, 2020
97a4a38
troubleshooting update functionality
Apr 7, 2020
6e94719
test commit
Apr 7, 2020
bde12e2
test commit
Apr 7, 2020
ea47cd5
test commit
Apr 7, 2020
91f4d9d
test commit
Apr 7, 2020
e562d97
test commit
Apr 7, 2020
1027c9f
test commit
Apr 7, 2020
86e24b8
test commit
Apr 7, 2020
2f62258
test commit
Apr 7, 2020
7c35f0c
test commit
Apr 7, 2020
43adf21
test commit
Apr 7, 2020
a10744c
test commit
Apr 7, 2020
a044caf
incomplete submission
Apr 7, 2020
c21041c
update fix
Apr 7, 2020
32fcf0a
update fix
Apr 7, 2020
7e9ebe3
update fix
Apr 7, 2020
6261206
update fix
Apr 7, 2020
2ebd7db
update fix
Apr 7, 2020
87dfc67
update fix
Apr 7, 2020
972464d
update page accesible
Devonte202 Apr 7, 2020
e80efcb
update put request fixed
Devonte202 Apr 7, 2020
3fd581d
update changed to post request
Devonte202 Apr 7, 2020
5b3ecb4
fixed update feature
Devonte202 Apr 8, 2020
a15190b
added logout feature
Devonte202 Apr 8, 2020
f8e63d2
fixing login feature
Devonte202 Apr 8, 2020
e2f02e7
fixing login feature
Devonte202 Apr 8, 2020
532c470
fixing login feature
Devonte202 Apr 8, 2020
1a01d4c
fixing login feature
Devonte202 Apr 8, 2020
f28c473
fixing login feature
Devonte202 Apr 8, 2020
7c90e00
fixing login feature
Devonte202 Apr 8, 2020
ce8e973
fixing login feature
Devonte202 Apr 8, 2020
95ab87a
test commit
Devonte202 Apr 8, 2020
5d4c7e5
test commit
Devonte202 Apr 8, 2020
748ef5b
test commit
Devonte202 Apr 8, 2020
c824e8d
test commit
Devonte202 Apr 8, 2020
189f24a
test commit
Devonte202 Apr 8, 2020
232cf70
test commit
Devonte202 Apr 8, 2020
1d504c3
test commit
Devonte202 Apr 8, 2020
97abdd9
test commit
Devonte202 Apr 8, 2020
b598eba
test commit
Devonte202 Apr 8, 2020
152ee12
test commit
Devonte202 Apr 8, 2020
98d322f
test commit
Devonte202 Apr 8, 2020
954af95
test commit
Devonte202 Apr 8, 2020
acfecda
test commit
Devonte202 Apr 8, 2020
96840ed
test commit
Devonte202 Apr 8, 2020
a9b0e0e
test commit
Devonte202 Apr 8, 2020
30550d4
test commit
Devonte202 Apr 8, 2020
04d4a62
test commit
Devonte202 Apr 8, 2020
a931d5c
test commit
Devonte202 Apr 8, 2020
d8a3cb7
test commit
Devonte202 Apr 8, 2020
bc2b433
test commit
Devonte202 Apr 8, 2020
75508ac
test commit
Devonte202 Apr 8, 2020
45b9c57
test commit
Devonte202 Apr 8, 2020
07f9459
test commit
Devonte202 Apr 8, 2020
0a43b2a
test commit
Devonte202 Apr 8, 2020
6ea4e1b
Added favicon
Devonte202 Apr 8, 2020
2d388f2
Added favicon link
Devonte202 Apr 8, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,6 @@ The purpose of this Problem Set is to merge your work from Problem Set 7.1 and P
3. Deploy to Heroku and be sure to include the project URL in your README.

### Due Date
Tuesday, April 7 at 9AM
Tuesday, April 7 at 9AM

[Link to project](https://shielded-lowlands-62326.herokuapp.com/)
27 changes: 27 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const express = require('express')
const app = express()
const bodyParser = require('body-parser')
const port = process.env.PORT || 8080
const userController = require('./server-side/controllers/user-controller')
const listRouter = require('./server-side/routes/router')
const cookieParser = require('cookie-parser')

app.use(bodyParser.json())
app.use(bodyParser.urlencoded({extended: true}))

app.use(express.static('public'))
app.set('view engine', 'ejs')

app.use(cookieParser())
app.use(listRouter)

app.get('/update-task/:id', (req, res) =>{
const id = req.params
res.render('update-task.ejs', { taskId: id })
})



app.listen(port, () => {
console.log(`Now listening on port ${port}`)
})
9 changes: 9 additions & 0 deletions db.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
const { Pool } = require('pg')


const pool = new Pool({
connectionString: process.env.DATABASE_URL
})


module.exports = pool
Loading