A public channel for the Angular community to come talk about Scully and JAMStack strategies in Angular.
Hello Everyone,
I have been tasked to create a website for 5 apartments that will be used for holiday lets.
I've been working in Angular for a while and enjoy it, but in this case SEO is a major concern, so I thought I could give scully a try.
I would like to get some advice on a possible stack to implement this,
Would this be a good starting point/idea:
Angular/Scully
Firebase for db
Snipcart/Stripe for checkout
Anybody know any good booking libraries of sorts? Would you just implement your own with something like full calendar?
Thank you
Edit:
Maybe could use strapi instead of firebase, never used it for more than a blog but maybe it's flexible enough
Hello, in a strange coincidence I have almost the exact situation as @sanjay51 of needing dynamic content.
The use case is for the user to be able to bookmark dynamic page. Originally I had been using params but scully, as designed, doesn\'t render that page giving the expected
No configuration for route "/path/:id" found. Skipping
And then if you ignore this route you run into the issue observed in @sanjay51 stackoverflow issue.
I thought then why not switch to query parameters. It sort of worked. Scully seems to parse out the trailing forward slash. If you have a url with a forward slash followed by the quesiton mark all works fine since only the forward slash is removed leaving the query params. If you do not have the forward slash all the query params are removed ie:
.../stuff/?id=l1w70y5l
turns into .../stuff?id=l1w70y5l
and works, but.../stuff?id=l1w70y5l
turns into .../stuff
and clearly breaks since there is no query params to read.
I have read through old git hub issues and even searched this chat and i see where @SanderElias states that query params don\'t play nice with JAM stack. I agree and wasn\'t my first choice as stated above. I have no issue changing my architecture if it solves my issue. Thanks in advanced
@mrwaffles143_twitter I posted a solution that uses firebase hosting config to configure the URL path <--> index.html mapping, please take a look if it applies to your case. Thanks.
Scully platform server
,pupeteer
and playwright
?
@griffinguy:matrix.org Angular universal uses platform server, and I had some issues with it as I was using properties of window and localhost objects in my application. When I switched to scully, puppeteer worked very well for me.
I heard though that platform-server is faster, as it doesn't require rendering pages in an actual browser - https://scully.io/docs/roadmap/
CREATE AN ENTRY POINT (HOME PAGE)
diff
highlighting with prismjs like in the code snippets in this blog post https://www.netlify.com/blog/2020/07/14/creating-an-angular-jamstack-blog/
I recently upgraded from Angular 11 to 13, but running npx scully
seems to take an abnormally long time now to generate routes. I can't seem to find anything in this chat, the github, or even starting a new project and copying more recent scully settings doesn't seem to fix it. The renderer is puppeteer and one of our routes does use the resultsHandler to bring in some blog posts if that helps. Here's the time it took:
Total time used 213.38 seconds
44 pages have been created
Rendering the pages took 208.38 seconds
That is 0.22 pages per second,
or 4736 milliseconds for each page.
This used to take around 60-90 seconds, which is more than double the time now