Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Separation of frontend and backend with Laravel and Vue.js

We are planning to develop a web application for job applications. In the first two years we expect the traffic to be about 3'000 - 6'000 visitors per day. At a later stage the traffic will grow up to 10'000 - 20'000 visitors per day.

Is there an advantage in separating frontend and backend (frontend standalone vue.js which calls the REST-API of Laravel) in compare to a all-in-one Laravel application which includes Vue inside the blade templates?

Thank you

like image 818
Vanessa-Joyce Avatar asked Jan 31 '17 10:01

Vanessa-Joyce


People also ask

How does Laravel and Vue work together?

The Laravel developers will first build an operational core for your web application, whereas the VueJS developers will create an interactive user interface for your web application. This combination will help you create beautiful and robust web applications.

Is Vue JS good with Laravel?

Yes, you can use Laravel with Vue js. Both of them support single page applications, and this combination allows you to be a full stack developer within a single project.

Is Vue JS front end or backend?

Vue for Web App Development. Vue. js is a front-end framework that experienced developers may use without needing to have a thorough command of many different programming languages. If you know the fundamentals of CSS, HTML, and Javascript, you can create fantastic, convenient, and thorough web apps.

Is Laravel backend or frontend?

Laravel is a backend framework that provides all of the features you need to build modern web applications, such as routing, validation, caching, queues, file storage, and more.


1 Answers

If you plan on delivering your product in the form of:

  • a REST API,
  • and a frontend application

Then you should definitely come up with two different repositories/project.

Starting with an "all-in-one" application for both backend REST API and frontend application looks simpler, as Laravel comes with Vue.js out of the box. But even if it's helpful regarding frontend, it is focusing on backend, PHP, and Laravel. I bet on your developers mixing backend and frontend pretty soon :)


Consider bootstrapping your frontend application with vue-cli as a standalone project, to get huge benefits from its webpack configuration, and a top-notch (frontend) developer experience. Your frontend application will be better from day one, focusing on its prerequisites: delivering high quality user experience.

like image 88
Clorichel Avatar answered Sep 18 '22 07:09

Clorichel