Index
Overview


This example will build a "To-Do App" using the example "quick-def-seed-show" as a basis/template.

The quick-def example featured "Def" as its core data.
This to-do app will have "ToDo" as its core data.

So we will have a little bit of work to do changing "Def" references to "ToDo".

Steps


ToDo Object
Here is the spec for a ToDo object.

ToDo
	title (a String)
	text (a String)
Rename Directory
We have one dir name to change
Change
	"views/defs"
to
	"views/todos"
DB URI
Let's hop into main.js and change the dbUri from "quick_def_db" to "todo_db". We only need to change the URI tail.
Rename Files
{--
In /models change:
	"def.js" to "todo.js"
	"def-seeder" to "todo-seeder"
In /middlewares change:
	defs-middleware.js
	to
	todos-middleware.js
--}
Small Tweaks
Then we make a pass through the files and change references to "def/Def" to "todo/ToDo" (note that case is important in js).
First let us change the schema in "todo.js"
	it is "title" and "text"
	and the scema is "ToDo" rather than "Def"
Then we will follow with updates of refs in these files:
models/todo-seeder.js
middlewares/ todos-middleware.js
routes/router.js
views/index.ejs
views/todos/list.ejs
main.js


Source Code


Here is our To-Do app...