Giter Site home page Giter Site logo

task-manager's Introduction

Task Management App

Stack

  • PHP 8.3
  • Laravel 11
  • Sanctum
  • Vue 3
  • Inertia
  • Tanstack Vue
  • TailwindCSS
  • MySQL

How to set up local server

System Requirements

  • PHP 8.3.7
  • Node v22.0.1
  • MySQL

Steps

  • Clone the repository
  • Run composer install and npm install
  • Create a database named task_manager or any other name, just update what is on the .env file.
  • Run php artisan migrate:fresh --seed to create the tables, seed a user and the statuses.
  • If you're running this app on Laravel Valet, Laravel Herd, or Laragon, you can access the site at http://task-manager.test
  • Else, run php artisan serve --port=80. Make sure that it is running on port 80 for sanctum to work and for the images to easily be accessible since they're uploaded locally.
  • Run npm run dev
  • You can now visit the app at http://localhost

Cron Job (Auto Deletion of Trashed Tasks)

To automatically delete tasks that were already trashed for 30 days

  • Customize the configs in .env file. Look for the DELETE_TRASH_DAYS_OLD and RUN_DELETE_EVERY keys
  • DELETE_TRASH_DAYS_OLD is the number of days a task is in the trash for it to be automatically deleted. Change to 0 if you want to test deletion of tasks that are recently trashed. Default value is 30
  • RUN_DELETE_EVERY is use to determine how often the cron job should run. Accepted values are daily or minute. Default is daily. Use minute if you want to test it immediately.
  • Run php artisan schedule:work
  • You can also manually test it using php artisan app:delete-trashed-tasks

Note

If something is not working, please run php artisan optimize

task-manager's People

Contributors

nadlambino avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.