Steps to compete this project
-
Create Advance Folder structure ✅
-
Create readme file ✅
-
npm init ✅
-
change package.js -> type to module ✅
-
git init --> git branch -m main ✅
-
create .gitignore file ✅
-
add node_modules folder into .gitignore file ✅
-
npm i nodemon -D ✅
-
add start script --> nodemon index.js ✅
-
npm i express ✅
-
install & configure dotenv package --> npm i dotenv ✅
-
write server start code to listen request ✅
-
List Feature in Habit tracker
- Authentication and Authorization ✅
- Doctor ✅
- SignUp
- Login
- Update User
- Reset Password
- Delete User (delete login from portal)
- Patient (will be handled by doctor only) ✅
- Register patient by mobile number (not a login feature)
- Crate report
- Update report
- View report
- get all report or particular patient
- get all report based on status
-
Install packages ✅
- npm i mongoose
- npm i connect-mongo
- npm i nodemailer
- npm i express-session
- npm i cookie-parser
- npm i bcrypt
- npm i express-async-handler
- npm i express-validator
- npm i jsonwebtoken
- npm i helmet
- npm i express-rate-limit
- npm i compression
- npm i winston
- npm i swagger-ui-express
-
Configure send email function ✅
-
Authentication an Authorization ✅
-
Crate global error handler ✅
-
Create Global not found handler for invalid api end points ✅
-
Configure logger, one for request and one for any kind of error ✅