sahat / megaboilerplate

Handcrafted starter projects, optimized for simplicity and ease of use.
MIT License
3.83k stars 257 forks source link

Update Express filename conventions #112

Closed sahat closed 8 years ago

sahat commented 8 years ago
  1. Capitalize model filename user.js to User.js.
  2. Change Pascal Case to Camel Case for all controller references. For example:
    • Pascal Case: var UserController = require('./controllers/user')
    • Camel Case: var userController = require('./controllers/user') (use this)

@niallobrien I have decided to keep controller names as-is for now. At least with model names capitalized, it shouldn't cause any confusion between user model and user controller file names.

niallobrien commented 8 years ago

Shame, I think the file name should match the var name. :(