DEV Community

Discussion on: Vue js project structure

Collapse
 
stefandorresteijn profile image
Stefan Dorresteijn

That's a good question, and one of the things that make it difficult to develop large frontend projects. My suggestion would be to start a project with the Vue CLI and simply follow the project structure they give you. It looks a little like this.

Collapse
 
ehutch79 profile image
Eric Hutchinson

This isn't great advice on it's own.

throwing all your components in one folder, which it looks like you should do from this advice, is a bad idea. What happens when you have dozen's of views? Hundreds of components as you build up a real world app? Just throw them in those 3 folders?

Collapse
 
stefandorresteijn profile image
Stefan Dorresteijn

I agree with you, sticking with this structure strictly will end up being messy, but it's good enough as a start. To explain how to properly structure a frontend application you'll need more than a comment, as it can get incredibly complicated.

Collapse
 
asimdahall profile image
Asim Dahal

Thank you very much