Тёмный

Laravel Vue SPA Issue Tracker part1: project setup 

Programming with Peter
Подписаться 1,6 тыс.
Просмотров 8 тыс.
50% 1

Опубликовано:

 

27 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 50   
@ProgrammingwithPeter
@ProgrammingwithPeter 5 лет назад
We finally started a new application! This has in mind the community of developers that need help and can't share code property formatted. This has in mind learning how to create a laravel api and a vuejs SPA! What do you think ? Sounds interesting?
@daviddeleon3411
@daviddeleon3411 4 года назад
NEW SUBSCRIBER AND NEW TEACHER! THANK YOU SIR :) KEEP UP THE GOOD WORK!
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
Thank you too, for checking it out!
@daviddeleon3411
@daviddeleon3411 4 года назад
@@ProgrammingwithPeter Yes sir im doing it right now sir! Thank you :)
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
@@daviddeleon3411 its still work in progress, new videos coming weekly.
@daviddeleon3411
@daviddeleon3411 4 года назад
@@ProgrammingwithPeter God Bless Sir :) I really like your dedication to teach us and thats motivates me alot :)
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
@@daviddeleon3411 and you motivate me!
@user-oc5zw2cd8k
@user-oc5zw2cd8k 3 года назад
Thanks for sharing, do you know how i can download PowerPoint presentation on my computer for free, any apps you would recommend?
@livresonltc9754
@livresonltc9754 4 года назад
Thanks again for your wonderful job man. Any idea when roles and permission from back-end will be implemented on front-end? Proud of you...
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
Thanks for the support, in January I'll be back with 3 videos a week, so I think we are getting there soon, even tho, we already have the gates in place, we just need to create a helper and a way to fetch the permissions.
@pagevpetty
@pagevpetty 5 лет назад
Will you please do a vid on implementing PayPal into a vue app???
@ProgrammingwithPeter
@ProgrammingwithPeter 5 лет назад
This application will have a PayPal integration, but it's going to be a long way until then! But if there will be more requests on this, we could make a separate video!
@4restable
@4restable 5 лет назад
Hey. Will the issue of authorization through social networks be considered using a token and transferring to Laravel?
@ProgrammingwithPeter
@ProgrammingwithPeter 5 лет назад
Hello, for sure, first we are going to work on the custom authentication with passport and after that with social networks!
@nahueljj
@nahueljj 4 года назад
why you create one proyect with laravel and other with vuejs? instead use laravel for work with both , sorry i dont speak english.
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
Keeping a single project works well for small to medium projects, but the best practice when you are building a SPA(single page application) is to have the API on it's own project and the client app on another. Imagine this, you can use the same API for multiple implementations, like maybe you want a different admin application, a mobile app, the client web app etc. So, as a best practice for bigger projects is to have different repositories. Another advantage is that you can use any webpack version you want, laravel mix is actually not the best out there so, sometimes it gets in the way.
@nahueljj
@nahueljj 4 года назад
@@ProgrammingwithPeter thanks u so much!!
@stefan4800
@stefan4800 4 года назад
Why the separate CLI for Vue, and having additional issues for local development, like CORS?
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
When you are building an API you usually have in mind something like your front-end that uses the API, maybe another one that is used by the clients and most common to have a mobile application too. Also, it's a better practice to have the front-end and back-end separated in case you want to have 2 versions or 2 front-ends that uses the same API, it's not that we couldn't use the laravel folder, it's just that I want to show the best and most common practice.Also If you want to take the front-end out is easier since it is another project. Even more, since they are 2 different projects, let's say you have 2 teams that work front-end and back-end, they won't have to check if someone else from the other team commited so that they can push etc. Other than the advantage of being easier to setup, there is none in keeping the projects on the same folder. Laravel boilerplate for front-end is to use it as a hybrid app, hence the logic to send the tokens and take it from meta tag etc.
@stefan4800
@stefan4800 4 года назад
@@ProgrammingwithPeter Thank you for the clarification, have a great day. :)
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
@@stefan4800 thanks for checking it out, if you have further questions, I will answer as fast as I can, have a great day too.
@ronjones1587
@ronjones1587 4 года назад
Thank you !!!!!!!!!!!
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
My pleasure!
@hilmihidayat
@hilmihidayat 4 года назад
hello peter. I tried to follow your video, but I have a little problem. on the console there is a GET http: // localhost: 8000 / api / net user :: ERR_CONNECTION_REFUSED and Uncaught (in promise) Type Error: Failed to fetch. What should be done for this problem ?
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
This is a connection issue, maybe you don't have the server for backend open?
@hilmihidayat
@hilmihidayat 4 года назад
@@ProgrammingwithPeter do you mean like xampp ? i'm using xampp
@hilmihidayat
@hilmihidayat 4 года назад
how to if any error in console "Access to fetch at 'localhost:8000/api/user' from origin 'localhost:8080' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled." ?
@hilmihidayat
@hilmihidayat 4 года назад
ok peter, i see. i am typo. Thank u :)
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
@@hilmihidayat this is a cors problem, you need to do what I do on videos too, but replace the URL that we put on config! cors.php if you have it different. I didn't install cors package on the first episode?
@MuhammadAdnan-gx6rd
@MuhammadAdnan-gx6rd 4 года назад
Bro how to solve ..... vue is not defined ? Php artisan preset Vue. ... I'm not using cli
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
Oh, preset vue? Well first you need to the laravel/ui package installed. I hope this is the name. Check php artisan list and see if you have the commands there.
@MuhammadAdnan-gx6rd
@MuhammadAdnan-gx6rd 4 года назад
dude its lara 5.8 not 6 I'm using ....
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
Then, you should already have Vuejs installed on your project. Check package.json and see if "vue" is there.
@MuhammadAdnan-gx6rd
@MuhammadAdnan-gx6rd 4 года назад
Yup I'm not that much beginner... I know it's pre-installed with laravel
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
Then, do a "php artisan preset help" and see what options it has, probably just none and react
@kamleshpaul414
@kamleshpaul414 5 лет назад
why don't u use laramix
@ProgrammingwithPeter
@ProgrammingwithPeter 5 лет назад
Because it is known to have sometimes issues and its a good practice to keep two separate projects. Vue cli it's the standard on vue world.
@kamleshpaul414
@kamleshpaul414 5 лет назад
@@ProgrammingwithPeter okay please teach vue middlware and vuex i miss those in vuejs
@ProgrammingwithPeter
@ProgrammingwithPeter 5 лет назад
@@kamleshpaul414 for sure, going to get there!
@จิรชัยโปรดิวซ์
wait next ep ;)
@ProgrammingwithPeter
@ProgrammingwithPeter 4 года назад
I need a few more days, not at home these days.
@kmata53
@kmata53 5 лет назад
Did Peter commit today's work? No.
@ProgrammingwithPeter
@ProgrammingwithPeter 5 лет назад
Because its a new project and we are going to do initial commit after a clean up:)
Далее
Are we going back to PHP with fullstack JavaScript?
9:57
What does larger scale software development look like?
24:15
Laravel Vue SPA: Roles and Permissions
7:42
Просмотров 54 тыс.
I tried 8 different Postgres ORMs
9:46
Просмотров 431 тыс.
Brutally honest advice for new .NET Web Developers
7:19