进入项目文件,安装依赖 cnpm(npm) install
运行:cnpm(npm) run dev
浏览器中运行http://localhost:8080 (具体内容看cnpm run dev的结果)
advanced(YII): 进入项目文件夹,执行composer install --ignore-platform-reqs (忽略版本问题)执行php init初始化项目,选择[0]development修改advanced\common\config\main-local.conf中的数据库连接信息 <?php return [ 'components' => [ 'db' => [ 'class' => 'yii\db\Connection', 'dsn' => 'mysql:host=***;dbname=**', 'username' => '*', 'password' => '*', 'charset' => 'utf8', ], 'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', 'viewPath' => '@common/mail', // 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' => true, ], ], ];