I was trying to setup a svelte js in django to build an ecommerce website. Then, I found out there are 3 architecture :
I choosed Hybrid Architecture because I don`t want to wrestling with CORS or any 3rd party framework and having disadvantage of not taking advantage of using js tooling.Now the questions are:
Note: I don`t want to use any Django libs such as Django-Svelte etc to setup it . I just want to install and setup with npm and webpack inside django just like normal setups.
Hey, yes absolutely you can build the SPA based ecommerce application, but you may need to address below things,
1. Now days Google can crawl JS but it might still be better to apply some special server side rendering for Google bot .
2. Anchor linking. E-commerce marketeers still have this desire to anchor link to content in a page (Grrrr… its not good practice!). This is harder on a Single Page Application. Not impossible, just not easy.