Yii2-RESTful-API-with-OAuth2
Yii2-RESTful-API-with-OAuth2 copied to clipboard
Not able to login in demo

Follow Step6 - 7 like this...
Step1: Create a database named yii2_rest Step2:Clone the source code git clone -b master https://github.com/sirinibin/yii2-rest.git
Step3: cd yii2-rest Step4:composer install Step5: ./init Step6: vim common/config/main-local.php change db information 'db' => [
'class' => 'yii\db\Connection',
'dsn' => 'mysql:host=127.0.0.1;dbname=yii2_rest',
'username' => 'root',
'password' => '123',
'charset' => 'utf8',
],
Step7: Run db migration cd /var/www/yii2-rest ./yii migrate