### Preferred directory structure with "why" | Directory | Description | | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------- | | /bin | Because Buildpack no longer [defaults server.js in root](https://github.com/igroff/heroku-buildpack-nodejs/blob/master/bin/detect#L6-L7) | | /lib | Library code used by server api | | /src | client side code / gets compiled | | /test | because default for most test libraries | | /public | dynamic/assets end up here/plus statics | | /config | central configy things | | ~~/server.js~~ | moved into /bin | | ~~/app.js~~ | moved into /bin | | /package.json | because [buildpack says so](https://github.com/heroku/heroku-buildpack-nodejs/blob/master/bin/detect#L21) |
Preferred directory structure with "why"
/server.js/app.js