This TaskManager was a simple application respecting the principles of CRUD made in Javascript using VueJS framework on the frontend and PHP Laravel on the backend.
To start the API application simply clone the project and open the folder
treffio-apiOnce cloned connect the .env of the
treffio-apifolder to your MYSQL credentialsAfter that run
composer installto install all the dependeciesNow inside the folder run
php artisan serve --port=80, notice that the port can be changed depending on your needs but make sure to change the .envVUE_APP_API_HOSTvariable in the VueJS application
- Run the last migration in order to setup your database with the required table, to run the migration you can simple type on your terminal:
php artisan migrate:refresh --path=/database/migrations/2023_03_22_150732_create_tasks_table.phpYou can also run the migration with a seed by typing: (This is only optional)
php artisan migrate:refresh --path=/database/migrations/2023_03_22_150732_create_tasks_table.php --seed
Allowed Methods: GET, POST
About: This endpoint can be used to GET all the tasks, or POST a new task
Allowed Methods: GET, PUT, DELETE
About: This endpoint can be used to GET a single the task, PUT new changes in a specific task, or DELETE a task
To start the VueJS application simply clone the project and open the folder
treffio_vuejsOnce cloned change the .env file
VUE_APP_API_HOSTvariable to the url of your api. DO NOT add the path and the endpoint in the same variable, the endpoint is already set inVUE_APP_API_ENDPOINT, example:
VUE_APP_API_HOST=http://localhost
VUE_APP_API_ENDPOINT=/api/v1/tasksNow inside the folder run
npm installfollowed bynpm run serveThe frontend should be up by now
- On the application you notice a square in the top left corner, by click on it, it will open a Sidebar Menu where we can use to navigate the application.
- To close the **SideBar** just click on the **3 bars** next to the title
- Home -> Home Page
- New Task -> Create a new task
- Task List -> Lists all tasks created
- It has all the routes available
- The card Completed Tasks show all the completed tasks
- To create a new task add a Task Name (Task Description is not necessary)
- By toggling on Add a new deadline to this task a calendar option will pop up and you can had a new deadline to the task, the time you most add manually right next to the date.
- The tasks are divided in 3 places All Tasks, Deadlines and Done!
- By click in one task you will see all the details of a task
- After clicking on a task a card will popup
- There you can see all the information related to that task
- You can click Done! to set the task as Done or Undo to set the task back do not done.
- You can click Edit and new options will appear (also notice the locker opens on the right corner of the card), here you can update the task by changing it's values and clicknig Save! or you can undo you changes by clicking Undo
- You also have the Delete options that deletes the task