achmadzainulkarim

Backend Standard Code

Sep 23rd, 2021
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. directory structure:
  2. - controllers
  3. - libraries
  4. - loaders
  5. - config
  6. - mocks
  7. - models
  8. - routes
  9.  
  10. case standard usage :
  11. -> class = UpperCamelCase
  12. -> function = lowerCamelCase
  13. -> const = lowerCamelCase
  14. -> module = lowerCamelCase
  15. -> local variable = snake_case
  16.  
  17. package that frequency used :
  18. -> async : rather than loop for, or for of
  19. -> multer : upload image
  20. -> multerS3 : upload image using AWS S3
  21. -> xendit node : xendit payment (generate VA & invoice)
  22. -> cryptoJS : encryption for token
  23. -> log4js : logging
  24. -> aws-sdk : aws sdk key integration
  25. -> faker : to make mock return more variative
  26. -> memcache-plus : managing cache
  27. -> redis : to get redis data
  28. -> moment : time conversion
  29. -> ampqlib : rabbitmq queue
Advertisement
Add Comment
Please, Sign In to add comment