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

(04-13-2020, 05:03 AM)shinseiten Wrote:
(04-12-2020, 06:30 PM)albertleao Wrote: Hey!

Sorry unfortunately the code is proprietary and we've almost completed migrated off of codeigniter at this point so a lot wouldn't make sense unless you're very familiar with Symfony too.

I would follow the instructions here : https://nuxtjs.org/api/configuration-generate

W
e're running an elastic beanstalk stack on aws and have the cron jobs setup through there. We use Symfony components for commands to run the nuxt generate commands. I don't know what size or traffic of your site is, but if it's large, you can also offload the nuxt assets to an external source (s3 bucket is a good one). Makes your site zippity quick.

Thank you anyway. 

I'm working on it and i hit some problems.

1) EDIT: PROBLEM SOLVED

2) Can I create the body with nuxt but let codeigniter create the head? Or I cannot do more than 'echo view("index-in-path-generated-by-nuxt")' within the controller?


You'd have to play with the output. I wouldn't recommend it as it couples your frontend with your backend. I guess it depends on how your backend is setup. Are you using your php server as an api server or are you also using it to render html?
Codeigniter is simply one of the tools you need to learn to be a successful developer. Always add more tools to your coding arsenal!
Reply


Messages In This Thread
RE: New World Frontend Order - how Codeigniter fit in a javascript frontend world? - by albertleao - 04-13-2020, 06:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB