Streletz / tasktracker

Other
3 stars 0 forks source link

Task tracker

This is a simple task tracker based on Yii 2.

FEATURES

SYSTEM REQUIREMENTS

WHATS NEW

INSTALLATION

  1. Download zip archive;
  2. Extract the archive to a folder on the server;
  3. Create database (if it is not already created);
  4. Configure database connection;
  5. Execute migrations and create the initial data.

CONFIGURE DATABASE CONNECTION

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',
];

CONFIGURE SMTP SERVER CONNECTION

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'
            ]
        ],

EXECUTE MIGRATIONS

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.

WARNING:

Starting from version 4.0.0:

Be careful!

HISTORY

Version 4.0.0

Version 3.0.0

Version 2.0

Version 1.0