Skip to content

Feedback #1

@ajbraus

Description

@ajbraus
  1. Very professional README.md - Excellent
  2. Love your clean and minimalist design. If I had one criticism it is careful to not be too sparse. Information density is very important for web design.
  3. You can use {timestamps: true} to have mongoose handle createdAt and updatedAt for you automatically.
  4. "checklistId" is more conventionally just => "checklist". But either way :D
  5. Instead of "completed" as a boolean, make it "completedAt" and make it a datetime. Then you have both if it is completed and when in one piece of data.
  6. Careful with "todoItems", this should be => "todos" and be an array of Schema.type.ObjectId.
  7. Same for "OwnerUserId" => "owner" or even just "user" to be clearer.
  8. reminder to gitignore your node_modules
  9. You require bcrypt in your app.js but don't use it. so you can just remove it. Only require things you use. YAGNI
  10. I really like your code. So clean, and you use one-liners the same way I do.
  11. Review and use const, var, and let consistently and correctly. Lots of extra var's around.
  12. Your controller code could be cleaner though, imo, put more on one line.
  13. If you fix your naming of your associated models you can use populate() to clean up your queries in your controllers.
  14. Where are your socket calls?
  15. If you use .sort() make sure to chain it and then finish with a .then() like this: .find().sort().then().catch()

Main things are to clean up your naming of attributes, timestamps, and especially the naming of associated resources. I'd also like to see the sockets but couldn't find. Otherwise looking good.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions