A task notes app with email notification
- Laravel 9
- Vue Js 3
- MongoDB
Make sure this:
- PHP version is 8 or above
- MongoDB driver for PHP already installed
- npm already installed
Clone the repo
git clone https://github.com/yama24/ivosights-todolist.git
or if you have Github CLI installed
gh repo clone yama24/ivosights-todolist
Get into the folder
cd ivosights-todolist
Download the dependencies
composer install
npm dependencies and run dev
npm i && npm run dev
Create .env file
cp .env.example .env
Generate APP_KEY
php artisan key:generate
Open .env file and setup the value
- APP_URL=(http://localhost/8000 or domain)
- DB_DATABASE=(your MongoDB database name)
- DB_USERNAME=(MongoDB username)
- DB_PASSWORD=(MongoDB user password)
and for email please set according to your email
for test, I suggest to use Mailtrap.io
migrate database
php artisan migrate
run the local server
php artisan serve
for notification, use crontab/cronjob and run in every hour
crontab -e
add this end of line and save
0 * * * * curl --silent "http://localhost:8000/crontab"
the user will receive an email if there is a task that will expire in the next hour