directory-structure


Development directory Structure [closed]


I am wondering what directory structure are commonly used in development projects. I mean with the idea of facilitating builds, deploys release, and etc.
I recently used a Maven structure for a java project, but I am not sure it's the best structure for a non-maven driven project.
So, I have two questions: When you guys start new projects, what structure you use? And: What if you need to integrate two different languages, like for example java classes into a PHP application; PHP files are source files, web files, you you use a /src, /classes, webapps/php ? What are your choices in such scenarios.
As a note: I am wondering also what are you choices for directories names. I like the 3-letters names (src, lib, bin, web, img, css, xml, cfg) but what are your opinions about descriptive names like libraris, sources or htdocs/public_html ?
After a couple years working with different structures I recently found a structure that hols most variations for me:
/project_name (everything goes here)
/web (htdocs)
/img
/css
/app (usually some framework or sensitive code)
/lib (externa libs)
/vendor_1
/vendor_2
/tmp
/cache
/sql (sql scripts usually with maybe diagrams)
/scripts
/doc (usually an empty directory)
Although we don't use Maven, we use the Maven directory structure.
We've found that it accurately reflects the concepts we need (e.g. separation of deployment code from test code, code from data, installers from code). Also we figure that if someday we switched to Maven, most of our process would remain the same.
I just found a interesting document about Directory structures on Zend website:
http://framework.zend.com/wiki/display/ZFDEV/Choosing+Your+Application%27s+Directory+Layout
A 2011 update:
http://java.sun.com/blueprints/code/projectconventions.html

Related Links

can I place the js,css,images files under resources folder and place this resource folder under src/main/webapp folder?
VMS directory issue
SaltStack: Use directory as source only if it exists
Is it safe to clone a git repository into its own .git directory?
CAB Files MAKECAB.exe Way to store directory structure
how do I create the URL “m.mysite.com” from mysite.com?
URL structure for inner pages?
Ideal directory structure for web application
Development directory Structure [closed]

Categories

HOME
ibm-bluemix
deployment
openmp
isabelle
react-virtualized
appx
spagobi
youtube-dl
maven-3
ip
installshield
offline
dosgi
lucene.net
swingx
swiftlint
orleans
firebase-crash-reporting
user-interaction
react-css-modules
bootstrap-material-design
entitlements
applozic
subdomains
primitive
ghost4j
http-referer
mapbox-gl
normal-distribution
hexo
catalog
neuroscience
theano.scan
grid.mvc
elmah
no-www
total-commander
flashair
reactive-cocoa-5
long-polling
apache-fop
react-scripts
blogengine.net
sage-one
slickedit
composite-key
capacity
memory-alignment
imanage
background-service
thrust
fputcsv
prettytensor
livequery
ford-fulkerson
ios8-today-widget
teamcity-8.0
riak-cs
ios9.1
apache-commons-net
javax.mail
geonetwork
facebook-graph-api-v2.4
tt-news
java.util.concurrent
mdt
zend-route
php-5.4
openexr
navigationservice
comexception
algebraic-data-types
industrial
opcache
jquery-mobile-dialog
html-editor
drools-planner
ocunit
isnullorempty
word-processor
automount
enter
asyncfileupload
assembly-loading
adk
boost-filesystem
mod-auth
subgurim-maps
f#-powerpack
lang
w3wp.exe
h.323
zend-translate
gamma
getresponsestream
web-architecture
kdbg
mtj

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile