Skip to content

isaacwashere/vuex-todo-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Basic Todo App

This is a basic, single page, todo app using VueX. The app supports selecting the total number of Todos desired from the jsonplaceholder API, as well as the creation of a new Todo item, the ability to delete a todo, and the ability mark/toggle a todo as complete or incomplete.

How to Run

  1. Navigate to Terminal

open directory in your Terminal

  1. Start the server:

type "npm run serve" OR "yarn serve"

press "enter"

  1. View the app:

open localhost:8080 in your browser (might open automatically)

Abilities & Features

  • A user can create a new Todo item and it will show in the UI and be "pseudo-sent" to the JSON Placeholder API
  • A user can filter and decide if they would like to see 200, 100, 50, 20, 10 or 5 Todo items
  • A user can toggle a Todo item's completion status in the UI and in the JSON Placeholder API
  • A user can delete a Todo item in UI and in JSON Placeholder API

Notable Technologies/Functions/Methods

Technology/Function Purpose
VueX Allow the sharing of state between multiple components
JSON Placeholder Source of Todo item data
Axios Make GET Req (fetch Todos and filter the amount desired), DELETE Req (delete a Todo item), POST Req (create a Todo item), and PUT req (update a todo)
grid (css) Display a single Todo in/on it's own tile; display a uniform amount of tiles on a single line
font awesome Give a visual "button" for a user to click when they wish to delete a todo
  • There is a store with a todos.js module; the module holds all the methods that makes various "async await" requests
  • By double clicking on a Todo item, it is updated as being completed or not completed
  • Using a "select" button that opens a dropdown a user can select how many Todos they wish to see
  • Todo creation and deletion is sent to JSON Placeholer API
  • JSON Placeholder is not a full service backend so creation, update and deletion are all "sort of" occuring

Future Implementation(s)

  • A user should have an account to save their Todo item's
  • The UI would benefit from rounder edges on the "Add Todo" input box and "Submit" button
  • Implement Testing

About

Simple Todo App with VueX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published