Todo Basic Project.
The demo is no longer available.
assets/ contains assets definition
commands/ contains console commands (controllers)
config/ contains application configurations
controllers/ contains Web controller classes
mail/ contains view files for e-mails
models/ contains model classes
runtime/ contains files generated during runtime
tests/ contains various tests for the basic application
vendor/ contains dependent 3rd-party packages
views/ contains view files for the Web application
web/ contains the entry script and Web resources
The minimum requirement by this project is that your Web server supports PHP 5.4.0.
Download and extract the archive file to a directory named todoslist
that is directly under the Web root.
Than run this commands:
$ cd todoslist
$ php composer.phar install
You can clone this project using the following command under the Web root:
$ git clone git@github.com:lmribeiro/todoslist.git
$ cd todoslist
$ php composer.phar install
First you must create the database manually, then ddit the file config/db.php
with real data, for example:
return [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=localhost;dbname=todoslist,
'username' => 'root',
'password' => '1234',
'charset' => 'utf8',
];
Then run migrations to create tables:
$ php yii migrate/
Set cookie validation key in config/web.php
file to some random secret string:
'request' => [
// !!! insert a secret key in the following (if it is empty) - this is required by cookie validation
'cookieValidationKey' => '<secret random string goes here>',
],
Config email at config/web.php
.
'mailer' => [
'class' => 'yii\swiftmailer\Mailer',
'useFileTransport' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'localhost',
'username' => '',
'password' => '',
'port' => '1025',
'encryption' => 'tls',
],
'messageConfig' => [
'from' => ['noreply@todolist.com' => 'TODOS.List'],
'charset' => 'UTF-8',
]
],
You can then access the application through the following URL:
http://localhost/todoslist/web/
You must set special permission to this folders:
- "runtime": "0777",
- "web/assets": "0777",
MIT. See License