Saturday, August 4, 2018

A checklist for building Angular web applications in the correct way

Hey guys, There has not been a  proper resource to have a checklist to make sure that applicaiton is flawless.I decided to write a simple tips on checklist items needed before you deploy your app to production.Following are a few Angular Code Review Checklists useful while doing a peer review of Angular code. Make sure to check these when you are building a production ready application


#1 - Code Modularity  
Layered Code with good Modularity.
#2 - Component per File 
 Each file must not contain more than one Component/Controller, etc.
#3 - Routing
Always configure routing with lazy loading
#4 - Shared Resources at Centralized Location
Store images/language translations under assets
#5 - 3rd Party Libraries 
 If you are integrating with any 3rd party libraries make sure to check for Security Flaws
#6 - Data Security 
Use  Encryption of Sensitive Data 
#7 - Offline Data Security
Consider security if you are storing Data in localstorage or session storage.
#8 - Cookies Data and Handwiring of Secrets
 Security Flaws
#9 - Do not use pipe / functions in the template
Calling function binding in the template will lead to  performance issue
#10 - Change Detection + State Management & Reactive Extensions 
Use RxJS, NgRx/Store (or Redux)
#11 - JavaScript or TypeScript
 Stick to ONE & Avoid Hybrid
#12 - Building/Packaging with WebPack (or similar)
 Bundling, Chunking, Treeshaking, Minification, Uglification, Compression
#13 - ECMAScript Compatibility - ES7 (2016)
#14 - Angular Style Guide (Official Reference) 
#15 - AsyncService 
 Adequate and Appropriate use of it.
#16 - Hierarchical Components, Models, Interfaces, etc. (Inheritance Approach)
#17 - Constants
No-Scattered Hard-Coded constants data but must be at one place.
#18 - Images, Fonts, Other Static Files -
Place them in respective directories and not scattered across.
#19 - TSLint.json 
To follow Angular Style Guide in order to run SonarQube or Codelyzer. Follow https://github.com/Angular-Projects-V-1-to-X/codelyzer
#20 Finally if you need to improve Performance - https://github.com/mgechev/angular-performance-checklist

Hope it helps all the developers out there.

12 comments:

veni said...

I feel really happy to have seen your webpage and look forward to so many more entertaining times reading here. Thanks once more for all the details.Block Chain Training in Bangalore

Block Chain Training in Bangalore

block chain Training in btm

Block Chain Training in tambaram

Block Chain Training in chennai

Block Chain Training in annanagar

Block Chain Training in pune

Block Chain Training in velachery

ganga said...

I simply wanted to write down a quick word to say thanks to you for those wonderful tips and hints you are showing on this site.
r-programming Training in bangalore

Rprogramming Training in velachery

Rprogramming online Training

Rprogramming Training

harini ganga said...

I am so proud of you and your efforts and work make me realize that anything can be done with patience and sincerity. Well I am here to say that your work has inspired me without a doubt.
selenium Training in chennai


amazon web services Training in chennai


Block Chain Training in velachery

Unknown said...
This comment has been removed by the author.
Unknown said...

Wow it is really wonderful and awesome thus it is very much useful for me to understand many concepts and helped me a lot. it is really explainable very well and i got more information from your blog.


rpa training in chennai | best rpa training in chennai | rpa training in chennai | rpa training in bangalore
rpa training in pune | rpa online training

shalinipriya said...

I am really very happy to find this particular site. I just wanted to say thank you for this huge read!! I absolutely enjoying every petite bit of it and I have you bookmarked to test out new substance you post.
Data Science training in kalyan nagar | Data Science training in OMR
Data Science training in chennai | Data science training in velachery
Data science training in tambaram | Data science training in jaya nagar

sai said...

I would like to thank you for your nicely written post, its informative and your writing style encouraged me to read it till end. Thanks
python training Course in chennai
python training in Bangalore
Python training institute in kalyan nagar

gowsalya said...

I found this informative and interesting blog so i think so its very useful and knowledge able.I would like to thank you for the efforts you have made in writing this article.
Best Devops Training in pune

lavanya said...

You rock particularly for the high caliber and results-arranged offer assistance. I won't reconsider to embrace your blog entry to anyone who needs and needs bolster about this region.
c Software Testing Training in Chennai | Software Testing Training in Anna Nagar | Software Testing Training in OMR | Software Testing Training in Porur | Software Testing Training in Tambaram | Software Testing Training in Velachery

Anonymous said...

Nice content very helpful, It has a very important point which should be noted down. All points were mentions and very well written. Keep Posting & writing such content.


Online AWS Certification Training
online aws Course

Ashleel Londa said...

Thanks for such a wonderful content. Our Motive is not just to create links but to get them indexed as will
Increase Domain Authority (DA).We’re on a mission to increase DA PA of your domain
High Quality Backlink Building Service
Boost DA upto 15+ at cheapest
Boost DA upto 25+ at cheapest . Very Helpful

IamLinkfeeder said...

David Forbes is president of Alliance Marketing Associates IncIamLinkfeeder IamLinkfeeder IamLinkfeeder IamLinkfeeder IamLinkfeeder IamLinkfeeder IamLinkfeeder IamLinkfeeder IamLinkfeeder IamLinkfeeder