DEV Community

Discussion on: What are the best practices for MEAN stack web development ?

Collapse
 
sagarb3 profile image
Sagar Bhattacharya
  1. Following a good style-guide

  2. Keeping the code functional and simple

  3. Understanding the difference between arrow function , function with function keyword , a basic understanding of this.

  4. Be aware of the event the node or web environment provide

  5. Avoiding duplicate code as much as possible , even if you feel you are duplicating code try to create a common service and as soon as you done with that remove duplicate code.

  6. Proper Error Handling on priority

  7. Understanding critical points of memory leak

  8. If their are some tasks like cron-jobs if possible run them as a separate micro-service called jobs totally outside of the application scope

  9. Use observables and behaviour subject for handling event change and try to avoid timeout as much as possible

  10. Divide the project into modules and identify the scope of services

  11. Learn aggregation.

  12. Learn about capped and ttl collection

  13. Proper Index Creation is must for giving performance boost

  14. Config must be properly developed

  15. Caching should be learnt on priority and various caching strategy available analysed

  16. Don't block the event loop.

  17. Refactor your code , avoid duplicates and write unit test cases

  18. Learn basics about ec2-instances , remote deployment , linux environment , docker.

  19. Git skills are a must

  20. Learn to create local packages and use them

  21. Learn about creating micro-services

  22. Please try and keep upgrading the node , angular version

  23. MongoDb atlas must be given a try

Collapse
 
rupeshiya profile image
Rupesh Krishna Jha

Thanks a lot @sagar for this awesome guide !!