Closed nichter closed 4 years ago
Hi Nitcher.
did you run php artisan serve
in the project root?
can you send console log too?
Hi, did you do this step too?
php artisan migrate --seed
The Yarn serve step is optional, only if you want each one to make a change to be compiled automatically and reload the browser.
Finally, I have used it in Linux and in Windows. Only for Windows you should use
composer install --ignore-platform-reqs
Hi raftx24 if i use "php artisan serve" on the browser i get the InvalidArgumentException View [index] not found. Are you sure the view exists and is a .blade.php file?,,,, error says I didnt changed anything in the code.
regarding the question from Heyner, Sure i ran migrate and seed. The db is populated...
i trying to compile on windows on mean time...
No, you need to run php artisan serve
.
You can follow the below.
php artsian serve
project-path/client
and run yarn serve
Thank you raftx24
oh .. i see:
well i opened 2 terminals
1) on the first i start php artisan serve --- and says Server (http://127.0.0.1:8000) started
2) on the second terminal i start yarn serve and says
App running at: - Local: http://localhost:8080/
3) note that are pointing to two differents ports (8000 and 8080). i tried o use the port 8080 for both
if i ran php artisan serve --port=8080 and start yarn ..it says if starts on port 8081
i is not possible to have both services pointing o the same port.
if i ran the browser on http://localhost:8080 i get problem from "view [index] not found
if i ran the browser on http://localhos;8081 i see only the green page
4) i also tested running first yarn which opens port 8080 and php artisan server with option --port=8080 it says is not possible because port is taken..
5) if i run the same proyect (without modifiing any option) on windows with the option "composer install --ignore-platform-reqs" i get a pink box with this error " So.. now i have more questions... but i woud like to see it working i have only a small mac to test the code and i dont thing i can put to much things on it.
nitchter, no you don't need to set ports manually.
php artsian serve
should run on port 8000
and yarn serve
should run on port 8080
Mr raftx24, thank for quick reply. so as i mentioned before it doesn't work... i still receive the geen board even if i have two server running.
This is a Mistake | bug | feature request.
Prerequisites
First of all thank you very much for this excellent development that you have put to the community. I am contemplating using it as an alternative to a boilerplate with themes with Vue once the user has entered the system, through assets and blade, a compiled page would practically be used and incorporated as a theme. Your approach is different, I would like to analyze it more. However, I must say that I am new to Vue and the associated compilation processes, I apologize. Well now I want to launch this application locally, I have a PC with Windows 10, which apparently does not work for some horizon requirements and has a Linux like wsl per, virtual machine and a partition with Ubuntu. (I must boot separately) I have carefully followed the instructions and I can compile the project well, without problems, only some warning, but when executing it, the green screen only appears. I have followed in detail the installation procedure described on the main page. Code is downloaded from repository indicated. .Env.example file is used to generate .env according to point 3, key for app is created. In client folder you change API_URL = http: // localhost: 80 / Yarn && yarn build is used in development environment Yarn serve is run and verified on host http: // localhost: 8080 if it helps the generated code is:
I would really appreciate if you can tell me where to correct the code or configuration to use so that I can run this demo locally. I am using the following configuration Development platform
Thanks
Carlos