Skip to content

Routers are not a great example to build upon #11

@jugonzal

Description

@jugonzal

Students who use the skeleton are facing two basic problems while following this template:

  1. Because the router modules have only ONE route each, it is not obvious how to create a module that has multiple routes within. This would be easily fixable just by adding a second route to users.js for example.

  2. For some reason, since Knex was removed, we also lost the data abstraction layer. While there may not be a lot of need for it, putting everything in the router sets them for other challenges when doing this project as a team. Once team member may be working on routes and another on database queries, and with this architecture both of them would be working out of the same files, increasing the rate of conflicts.

These issues are only obvious since the skeleton was refactored for the new curriculum

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions