This is a simple task tracker based on Yii 2.
PostgreSQL (version 10 or higher) or MySQL (version 5.6 or higher).
PostgreSQL is recomended.
Edit the file config/db.php
. Uncomment rows for your RTDBMS and write real data into, for example:
return [
/*MySQL*/
//'class' => 'yii\db\Connection',
//'dsn' => 'mysql:host=localhost;dbname=tasktracker',
//'username' => 'root',
//'password' => '',
//'charset' => 'utf8',
/*PostgreSQL*/
'class' => 'yii\db\Connection',
'dsn' => 'pgsql:host=localhost;port=5432;dbname=tasktracker',
'username' => 'postgres',
'password' => 'postgres',
'charset' => 'utf8',
];
Edit the file config/web.php
with real data, for example:
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
// send all mails to a file by default. You have to set
// 'useFileTransport' to false and configure a transport
// for the mailer to send real emails.
'useFileTransport' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
// Your SMTP server
'host' => 'smtp.example.com',
// Your user name
'username' => 'example@example.com',
// Your password
'password' => '*******',
// Your port
'port' => '465',
'encryption' => 'ssl'
]
],
Edit the file config/params.php
with real data, for example:
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
// send all mails to a file by default. You have to set
// 'useFileTransport' to false and configure a transport
// for the mailer to send real emails.
'useFileTransport' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
// Your SMTP server
'host' => 'smtp.example.com',
// Your user name
'username' => 'example@example.com',
// Your password
'password' => '*******',
// Your port
'port' => '465',
'encryption' => 'ssl'
]
],
To execute the migration and create the initial data, run the following commands in the console, for example:
cd var\www\myserverfolder
yii migrate --migrationPath=@yii/rbac/migrations/
yii migrate
yii rbac/init
NOTE: The actual path to your folder on the server may differ from that shown in the example.
Starting from version 4.0.0:
Be careful!