This task assignment is built using Yii2 Framework
commands/ contains console commands (controllers)
config/ contains application configurations
controllers/ contains Web controller classes
models/ contains model classes
runtime/ contains files generated during runtime
vendor/ contains dependent 3rd-party packages
views/ contains view files for the Web application
web/ contains the entry script and Web resources
Edit the file config/db.php
with real data, for example:
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=yii2basic',
'username' => 'root',
'password' => '1234',
'charset' => 'utf8',
];
POST base_url/user/ Payload
{
"firstname": "Roger",
"lastname": "Chin",
"email": "[email protected]",
"birthday": "1992-11-21",
"location":"Singapore",
"time_offset": 9
}
Populating Scheduler Can Be set Every 5 Minutes, to populate mail_scheduler table based from customer user data
php yii mail-queue/process-mail-queue
Send Email Can Be set Every 3 Minutes, to send email using provided API
php yii mail-queue/process-mail-queue