简体   繁体   English

如何使用 passport 克隆并运行 vue laravel 项目?

[英]How to clone and run vue laravel project with passport?

currently i need to work on a project using laravel and vue目前我需要使用 laravel 和 vue 开发一个项目

i cloned the project that i need to work on from github,我从 github 克隆了我需要处理的项目,

the project is using vue and laravel with passport该项目正在使用 vue 和带有护照的 laravel

but i'm not sure what are the commands i need to use to run the project on my local machine但我不确定在本地机器上运行项目需要使用哪些命令

do i follow the same commands like when i clone a laravel project?我是否遵循与克隆 laravel 项目时相同的命令? or there is something extra for vue?或者 vue 有什么额外的东西?

i tried to install passport and run few commands but still facing blank page我尝试安装护照并运行一些命令但仍然面临空白页面

if someone can provide the commands in order that would be much appreciate it如果有人可以按顺序提供命令,将不胜感激

It's really difficult to say what commands needs to be run in your specific case, since we can't see the code.很难说在您的特定情况下需要运行什么命令,因为我们看不到代码。 Also make sure your.env is set up correctly with database connections etc.还要确保 your.env 已正确设置数据库连接等。

But generally you would need something like this.但通常你会需要这样的东西。

  1. Install packages安装包

    composer install作曲家安装
    npm install npm 安装

  2. Create APP_KEY for Laravel为 Laravel 创建 APP_KEY

    php artisan key:generate php 工匠钥匙:生成

  3. Run migrations to create all your database tables.运行迁移以创建所有数据库表。

    php artisan migrate php 工匠迁移

  4. Start artisan server for the Laravel backend.为 Laravel 后端启动 artisan 服务器。 Default port is 8000, so you should reach it at http://localhost:8000默认端口为 8000,因此您应该通过 http://localhost:8000 访问它

    php artisan serve php 工匠服务

  5. Compile the front end files编译前端文件

    npm run dev npm 运行开发

But this is all guesswork.但这都是猜测。 Your project could be set up different.您的项目可以设置不同。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM