Repository files navigation
[] MONGO_URL # DataBase Connection
[] PORT # Port address (recommended 5500)
[] JWT_SECRET # JWT SECRET
[] JWT_LIFETIME # JWT lifeTime (recommended '1hr', '1d');
First Registory is ADMIN by default >which provide privilage of creating owner and have power has Super user
Password was bycrypted During pre Save Schema in Schema methods
JWT creation and attach to the cookies was handle throught the util functions attachCookies from utils
Error are handled throught the express-async-error and custom Error classes
some added security of xss-clean, http-rate-limit and helmet added
For supporting Cross-Origin Resource Sharing and filedoc cors and fileupload middleware added
Morgan for logger also used for displaying logger info on the console
Worked on use of populate ,virtuals and aggreagator function also utilized
Worked on Schema.static.methods, Schema.methods and Schema.pre(save,fn()) and Schema.post() methods are also explored and handled/
You can’t perform that action at this time.