Skip to content

Instantly share code, notes, and snippets.

@Mohammad-Faisal
Last active February 25, 2024 12:38
Show Gist options
  • Save Mohammad-Faisal/3ba37a40a17f9ca8116222149f85de52 to your computer and use it in GitHub Desktop.
Save Mohammad-Faisal/3ba37a40a17f9ca8116222149f85de52 to your computer and use it in GitHub Desktop.
Backend Project Checklist
When creating a backend project we need to ensure that all of these basic things are implemented.
* First choose a suitable file structure
* Add swagger
* Add Environment for development and production (at least)
* Enable Cors
* Add schema based request validator
* Implement throwing Custom Exception
* Add Global Exception Handling
- Handle Database Exception
- Handle Request Validation Exception
- Handle Custom Exception
- Handle Custom ErrorCodes and ErrorMessages
* Add BaseRequest BaseResponse BaseEntity CustomException BaseSuccessResponse and BaseErrorResponse Classes
* Implement Logger
* Add Dockerfile to run the project in docker
* Ensure Database Connectivity
* Implement Basic Authentication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment