├── .gitignore
├── public
└── styles.css
├── views
├── new.ejs
├── edit.ejs
├── partials
│ ├── footer.ejs
│ └── header.ejs
└── index.ejs
├── package.json
├── readme.md
└── app.js
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 |
--------------------------------------------------------------------------------
/public/styles.css:
--------------------------------------------------------------------------------
1 | body {
2 | padding-top: 80px;
3 | }
--------------------------------------------------------------------------------
/views/new.ejs:
--------------------------------------------------------------------------------
1 | <% include partials/header %>
2 |
3 |
15 |
16 | <% include partials/footer %>
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "ToDo",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "app.js",
6 | "scripts": {
7 | "test": "echo \"Error: no test specified\" && exit 1"
8 | },
9 | "author": "Ian",
10 | "license": "ISC",
11 | "dependencies": {
12 | "body-parser": "^1.14.1",
13 | "ejs": "^2.3.4",
14 | "express": "^4.13.3",
15 | "express-sanitizer": "^1.0.1",
16 | "method-override": "^2.3.5",
17 | "mongoose": "^4.2.3"
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/views/edit.ejs:
--------------------------------------------------------------------------------
1 | <% include partials/header %>
2 |
3 |
15 |
16 | <% include partials/footer %>
--------------------------------------------------------------------------------
/views/partials/footer.ejs:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
9 |
10 |
11 |