🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
1.安装thinkPHP ``` composer create-project topthink/think tp ``` 2.安装thinkPHP拓展包 安装多应用模式扩展 ``` composer require topthink/think-multi-app ``` 模板引擎 ``` composer require topthink/think-view ``` 验证码 ``` composer require topthink/think-captcha ``` 数据库迁移工具 ~~~ composer require topthink/think-migration ~~~ 3.安装apiadmin ~~~ composer create-project apiadmin/apiadmin ~~~ > 第二步:检测环境以及配置数据库 ~~~ php think apiadmin:install ~~~ > 第三步:完成数据迁移 ~~~ php think migrate:run * 如出现报错:There are no commands defined in the "migrate" namespace. * 请先更新下think版本:composer update topthink/framework * 再执行:php think migrate:run * 特别鸣谢:@孙晔华 ~~~ > 第四步:构建后端路由 ~~~ php think apiadmin:adminRouter ~~~ > 第五步:获取管理后台账号密码 ~~~ cat install/lock.ini ~~~