Simple postgres + express example application for a todo list like API.
- Start by creating the postgres database by running:
createdb todo-example
. - Run the database migration(s) by running:
sequelize db:migrate
If you wanted to extend this app and make this application more complex, you could try:
- Create a
List
model and make eachTodo
fall under a specific list, or even multiple lists! - Create users and assign each
List
(orTodo
s if you didn't want to do the lists) to a user or multiple users. - Authenticate the requests to
update
ordelete
Todo
s so that only the user who created it can change it.