53Todo List

Let’s start with the good-old trusty todo list, the “Hello, World” of full programs. You’re going to write a command-line todo list program that meets the following specifications:

  • Prompt the user to enter a chore or task. Store the task in a permanent location so that the task persists when the program is restarted.

  • Allow the user to enter as many tasks as desired but stop entering tasks by entering a blank task. Do not store the blank task.

  • Display all the tasks.

  • Allow the user to remove a task, to signify it’s been completed.

Constraints

  • Store the data in an external data source.

  • If you’re using a server-side language, consider persisting the data to Redis.

  • Consider persisting the database to a third-party service like Parse or Firebase.

Challenges

  • Implement this in a web browser using only front-end technologies. Investigate using IndexedDB to save the items.

  • Implement the front end as an Android or iPhone app, but connect that front end to your own back end that you write using a server-side language. Create your own API for retrieving the list, creating a new item, and marking an item as complete.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.21.166