burhanmakiya / library

1 stars 0 forks source link

Refactor to a layered architecture #3

Open Horrendus opened 1 year ago

Horrendus commented 1 year ago

Currently everything (except the models) is in one JS file and everything from handling the request to database handling is done in one function per request.

This should be changed to a layered architecture with at least 2 layers (e.g. one for request handling & validation and one for database handling)

Horrendus commented 1 year ago

This also helps with a future move away from MongoDB to a relational database & SQL