!! TABS ARE TO BE USED ACROSS THE PROJECT. NO SPACES ALLOWED FOR INDENTATION. !!
- This is a Node.js project, so the use of ES6/7 is encouraged.
- JS variables names are
camelCase. - JS variables should be defined with
constunless they are mutated, then uselet. A good rule of thumb - define every variable asconstuntil you need them to be mutable, then update tolet. Usingvaris banned. - It is preferred to use
async/awaitfor handling Promises.
- Routes are singular. (/controller, /event)
- Use the correct HTTP methods (for basic CRUD: Create - POST, Read - GET, Update - PUT, Delete - DELETE)
- Keep routes as brief as possible (
PUT /controller/[cid]/updateis better expressed asPUT /controller/[cid])
This is a living document that may be updated as needed. This document may be updated like any other part of the project (clone, branch, push, merge request).