title: Best way to set up routes in Node.js with Express.js
body: <p>I'd like to know my options for how to structure my routes in Express.js. Here's my apps directory right now:</p>
  
  <pre><code>  ├── public
    │   ├── images
    │   ├── javascripts
    │   │   ├── showLogin.js
    │   │   └── showSignup.js
    │   └── stylesheets
    │       ├── dash.styl
    │       ├── reset.styl
    │       ├── space.styl
    │       ├── style.css
    │       ├── style.styl
    │       └── typography.styl
    ├── routes
    │   └── index.js
    ├── views
    │   ├── dash.jade
    │   ├── index.jade
    │   ├── layout.jade
    │   └── space.jade
    ├── app.js
    └── package.json
  </code></pre>
  
  <p>Is it best to break up routes/index.js into several single route files? I've tried this, and apparently I'm not much good at it, haha.</p>
  
  <p>Another option is to introduce a lib directory somewhere. Where does one usually do that?</p>
  
  <p>Any other advice would rock!</p>