What is the best way to organize a directory for a web project?

Asked

Viewed 399 times

3

What is the best way to organize directories for a PHP web development project?

1 answer

0

You can choose a framework and normally when creating a project it will do that work for you, but a good "Boilerplate" would be:

app/
   styles/
   scripts/
   views/
        home.html
        etc...
   assets/
       fonts/
       imagens/
 config/
  • There is no correct answer to your question, as it is based on opinions, people do it in the way that seems most convenient to them.

  • 1

    You’re absolutely right, I was just giving an idea to someone who never had to organize... This structure changes from person to person and from framework to framework.. there is no correct way.

  • I say this because for example if I want to organize my project for distribution of the source, development and also production. what would be the best method?

  • I would use a client/ folder with everything I needed, and then compile and minify everything into a build/ folder, which would only have a main.css, main.js, and the rest I needed, all pre-processed and minified.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.