File Structure - Xantier/nerd-stack GitHub Wiki

File structure for the application:

app/
   |components/
     ... React Components
   |config/
     ... Server initialization & Database initialization
   |data/
      |[database instance]/
           ... Database configurations
         |persistence/
           ... Repositories and DAOs for database instance         
         |model/
           ... Database models
   |render/
     ... Render entry points for both server and client rendering
   |router/
     ... Express router files for views and APIs
   |services/
     ... Services for data fetching and manipulation 
   |util
     ... Utility scripts
spec/
 ... Tests
views/
 ... Jade view files
app.js
 ... Express bootstrapping
run.js
 ... Babel require hook wrapping the application
gulpfile.js
 ... Gulp tasks (build, test, run etc.)
package.json
 ... Project info and dependencies
.eslintrc
 ... Rules for linting