Iseltech17 - Single Page Applications
- 2. Who am I?
26/05/2017Single Page Applications Mónica Rodrigues
Mónica Rodrigues
Degree in Computer Science Engineer at ISEL
Software Engineer since 2010
Keywords: Web Applications, ASP.NET MVC, ASP.NET Web Api, REST, Javascript,
Angular, Best practices, Design patterns, Clean Code, SQL Server
- 3. Contents
26/05/2017Single Page Applications Mónica Rodrigues
What is SPA?
Motivations / Considerations
Multiple Page Applications vs Single Page Applications
Frameworks Javascript / SPA Samples
What I need to begin?
Best practices / Recommendations
- 4. First page – Long time ago
26/05/2017Single Page Applications Mónica Rodrigues
- 8. Solution
26/05/2017Single Page Applications Mónica Rodrigues
Use modern web development techniques to build a single-page app that doesn’t need to reload itself as
the user browses through it.
SPASingle Page Application
- 9. Motivations
26/05/2017Single Page Applications Mónica Rodrigues
Reach
Web app may be accessible on different platforms and devices
Round trip
Web app not require many round trips between client and server
Better user experience
Separation of responsibilities between client and server
- 13. SPA and Multiple Page Application (Mix)
26/05/2017Single Page Applications Mónica Rodrigues
Products Page
Mini
SPA
Categories Page
Mini
SPA
Request Data
Request Data
Response Data
Response Data
- 16. What I need to begin?
26/05/2017Single Page Applications Mónica Rodrigues
Choose a framework or library
Depends, what do you want to do?
Choose a IDE and structure your folders
Think about your application, namely HTML structure and CSS
Lets start with Javascript
Don’t forget the best practices !!!!
- 20. Functions to build modules
26/05/2017Single Page Applications Mónica Rodrigues
Revealing module
pattern
- 21. Functions to build modules
26/05/2017Single Page Applications Mónica Rodrigues
What’s the matter with previous code?
There are two global variables
worker
createWorker
There variables can be redefined in other files
- 22. Functions to avoid global variables
26/05/2017Single Page Applications Mónica Rodrigues
Reduce to 1 global
variable
But, how can I get 0
global variables?
- 23. Functions to avoid global variables
26/05/2017Single Page Applications Mónica Rodrigues
- 24. Thank You!
26/05/2017Single Page Applications Mónica Rodrigues
Mónica Rodrigues
Email: monica85rodrigues@gmail.com
Blog: http://mrodiguesblog.azurewebsites.net/
@Monica85Rodrig
https://pt.linkedin.com/in/monicascrodrigues
https://github.com/monica85rodrigues