deromanenko's avatar

How to start with Lumen and Vue?

Hello! I want to create new app using Lumen and Vue. I have an experience with Laravel, but Vue is a new horse fo me, and I have lack in some things. Really appreciate for any help and advice.

I don't want to use full Laravel power, so lean Lumen boilerplate looks good to me. But also I don't want to make backend-agnostik frontend and use some tricky Vue stuff, if it can be realised wit Lumen. (I am new to javascript)

  • How to organize my app? Should I call '/' route after user opens my site and response with file?
  • Does I need to use Vue router, If I use Lumen router? Don't want to build full-SPA, page reload acceptable.
  • Does I really need to use Vuex (state saver)?
  • Does I will have problem with authentification of user cause Lumen session-less?

Thank you!

0 likes
1 reply
J_shelfwood's avatar

I feel like your best bet is still using Laravel, I don't know the specifics on what lumen has or not but you're not losing anything by choosing laravel, especially if you're building a traditional web app. If you are building just the API I would totally go for lumen.

You don't have to use vue router, you can just use traditional routing if you don't mind page reloads. I like using both blade and vue components.

VueX? Nah, don't really need it unless your application is going to be huge. If it is going to be huge I would still doubt really needing it.

I wouldn't know the answer to your last question but since it's Lumen specific using Laravel will be your best bet.

2 likes

Please or to participate in this conversation.