This project is a simple To-Do app built using:
- Quasar Framework (Vue.js based UI)
- Axios (for API requests)
- JSONPlaceholder (mock API)
- Typescript
Make sure you have the following installed (or updated to its latest version):
- Node.js (recommended: v16+)
- npm
- Unzip project file to folder
- Open a terminal (powershell or command prompt) and navigate to the project directory: cd todo-app-project 2.2. Install the dependencies
- After installation is successful, run the server: quasar dev 1.1. If not recognized, install Quasar CLI (globally): npm install -g @quasar/cli
- Wait for it to compile and communicate with the server, client, and browser
This app loads the tasks from the mock API (JSONPlaceholder). Here are the actions you can do: a. Add new tasks - simply type in your new task into the input field - when done, click the "Submit" button to display it b. Edit tasks - click on the "Edit" button to edit the details of the task - If you are done editing, press the 'Save' button - The 'Save' button is also the way out if you want to cancel editing c. Delete tasks - click on the delete button to delete a task. There is no confirmation prompt made just yet
- Form with input field and submit button
- Tasks list displays the data from the mock API (GET)
- Add new tasks to display (POST)
- Edit tasks and displays the new information (PUT)
- Delete tasks from view (DELETE)
Notes:
- JSONPlaceholder is fake API, therefore, data is not permanently saved to the server
- New tasks and edits are kept using the localStorage of the session.
- The new functionality of the DELETE method will only successfully run if you do not refresh the page