Welcome Guest, Not a member yet? Register   Sign In
New World Frontend Order - how Codeigniter fit in a javascript frontend world?
#22

(04-13-2020, 02:11 PM)albertleao Wrote: I'm not sure what you mean by "create routes by returning an axios call that points to a server api".

Are you trying to manage your nuxt/front end routes via php in the backend?

No sorry, I explained it bad. I was trying load data and generate static html by using directly an api call with axios instead of populating a json and requiring it. The only example that I found of this kind of operation was in the route generation code.

Anyway, I did it. I thought nuxtServerInit would work like asyncData (and make a request everytime you enter the page), instead with "nuxt generate" it required the data and etched it in my store and then in my static pages.

Now I just need to understand how to take full control of the directories where put the generated files. Put the index.html in the app/View folder and the various assets in the /public folder. If I understood correctly your insights.
Reply


Messages In This Thread
RE: New World Frontend Order - how Codeigniter fit in a javascript frontend world? - by shinseiten - 04-13-2020, 02:28 PM



Theme © iAndrew 2016 - Forum software by © MyBB