P
P
Proroks2020-01-29 17:32:10
Vue.js
Proroks, 2020-01-29 17:32:10

Gradual integration of Nuxt?

Kind people, please tell me the most correct way to start integrating nuxt into an existing php project?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alex, 2020-01-29
@Kozack Vue.js

Looks like an attempt to pull an owl on a globe. But I think it's worth starting with an understanding of the basic principles:

  • nuxt and all its logic will be responsible for the user interface
  • php will be responsible for working with the database and other things. That is, provide an api for nuxt

Therefore, you need to start by dividing the existing project into parts. Transfer the business logic to a separate module, which will be accessed only through the universal API.
And then write an interface (website) on nuxt that would interact with this API.
In fact, you will have two separate projects. One in PHP and one in Nuxt.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question