Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Main #42

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Main #42

Changes from all commits
Commits
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
15 changes: 15 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "pwa-chrome",
"request": "launch",
"name": "Launch Chrome against localhost",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
}
]
}
9 changes: 9 additions & 0 deletions .vscode/workspace.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"folders": [
{
"name": "node-todo",
"path": ".."
}
],
"settings": {}
}
610 changes: 610 additions & 0 deletions package-lock.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "node-todo",
"version": "0.0.1",
"description": "Simple todo application.",
"description": "Simple todo application. Modified by Gerald",
"main": "server.js",
"author": "Scotch",
"dependencies": {
4 changes: 2 additions & 2 deletions public/index.html
Original file line number Diff line number Diff line change
@@ -33,7 +33,7 @@

<!-- HEADER AND TODO COUNT -->
<div class="jumbotron text-center">
<h1>I'm a Todo-aholic <span class="label label-info">{{ todos.length }}</span></h1>
<h1>Gerald's a Todo-aholic <span class="label label-info">{{ todos.length }}</span></h1>
</div>

<!-- TODO LIST -->
@@ -73,7 +73,7 @@ <h1>I'm a Todo-aholic <span class="label label-info">{{ todos.length }}</span></
</div>

<div class="text-center text-muted">
<p>A demo by <a href="http://scotch.io">Scotch</a>.</p>
<p>A demo by <a href="http://scotch.io">Scotch - with some changes by Gerald</a>.</p>
<p>Read the <a href="http://scotch.io/tutorials/javascript/creating-a-single-page-todo-app-with-node-and-angular">tutorial</a>.</p>
</div>

2 changes: 1 addition & 1 deletion public/js/controllers/main.js
Original file line number Diff line number Diff line change
@@ -6,7 +6,7 @@ angular.module('todoController', [])
$scope.loading = true;

// GET =====================================================================
// when landing on the page, get all todos and show them
// when landing on the page, get all todos and show them (test) (another test)
// use the service to get all the todos
Todos.get()
.success(function(data) {