Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Challenge1 user account management miguelgimenez#53

Open
miguelgimenezgimenez wants to merge 32 commits intoalayagood:masterfrom
miguelgimenezgimenez:challenge1-user-account-management-miguelgimenez
Open

Challenge1 user account management miguelgimenez#53
miguelgimenezgimenez wants to merge 32 commits intoalayagood:masterfrom
miguelgimenezgimenez:challenge1-user-account-management-miguelgimenez

Conversation

@miguelgimenezgimenez
Copy link
Copy Markdown

Add user authentication and authorization for creating and deleting posts.

Added .nvmrc file for the client because there was issues running with node version above v16.xxx.

NOTE: Errors in the backend are being caught in a centralized manner , using the express-async-errors package, which catches all errors in the controllers and the services and forwards them to the error middleware
Something similar is done in the frontend by using axios interceptors to catch all errors, some errors are still caught when some side effects for the catch are needed

This centralized way of catching errors is a bit lazy since it doesnt give you granular control for the errors but allows you to avoid using try catch in all the function blocks. IF more granularity is needed try catch should also be added, but errors are being caught anyways and the app should not break.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant