| body-parser | dotenv | express | jsonwebtoken | md5 | nodemon | nodemailer | mysql | moment-timezone |
npm init -ynpm i body-parser dotenv express jsonwebtoken md5 nodemon nodemailer mysql moment-timezone- add .env file
-
/login/pin 🙇♂️ |
post request|5 digit number -
/login/UserName 🙇♂️ |
post request|UserNameandPassword
- /user/AccountDetails 🙇♂️ |
get request| - /user/updateUserPassword 🙇♂️ |
put request|currentPasswordandnewPassword - /user/updateDetails 🙇♂️ |
put request| user can enter any value in database (database column name) to update (dynamic sql query) - /user/all-details 🙇♂️ |
get request| (get all users deatils) - /user/search 🙇♂️ |
post request|Nameuser should enter at least one letter
- /request/get-otp 🙇♂️ |
post request|email - /request/verify-otp 🙇♂️ |
post request|emailandpassword_reset_otp - /request/reset-password 🙇♂️ |
post request|emailandPassword
- /customer/details/:RegId |
get request| get one customer details:RegIdis customer id - /customer/all-details 🙇♂️ |
get request| - /customer/search 🙇♂️ |
post request|Nameuser should enter at least one letter
-
/collectAmount/cashCollect 🙇♂️ |
post request| user must enteraccountNumber,Bal,EmpCode,DailyTotal -
/collectAmount/bankTransfer 🙇♂️ |
post request| user must enteraccountNumber,Bal,EmpCode,DailyTotal -
/collectAmount/bankCheque 🙇♂️ |
post request| user must enteraccountNumber,Bal,EmpCode,DailyTotal,BankName,CheqNo,CheqDat -
/collectAmount/dayCollection/:EmpCode 🙇♂️ |
get request| user must sendEmpCodein URL | show Today Collection