News for hackers. Stuff that matters.
Re:Show HN: Second Screen News by gnomodromo on Sunday December 16, 2018 @07:13PM (#18696075)
Does anyone has experience with pre-rendering angularjs? When I post my site on twitter I get tags like {{title}} in the tweet. I've seen some services that pre-render (SaaS) but I'd prefer an independent solution.
Re:Show HN: Second Screen News by gnomodromo on Saturday December 15, 2018 @06:19PM (#18690899)
Another reason I post this here is to ask for advice how much CPUs and memory you would suggest for a site like that. It's hosted on EC2.
Re:Show HN: Second Screen News by viraptor on Saturday December 15, 2018 @06:31PM (#18690939)
If enough people start using it? I'd suggest doing the dynamic part on a tiny instance (i.e. only as big as you need for scraping and generating the updates / trends) and pushing updates to S3. Then the client can poll S3 objects. (With some marker for "latest")

You'd have to cross 1gb/h of transfer before it costs more than running more than t3.small.

Re:Show HN: Second Screen News by gnomodromo on Saturday December 15, 2018 @08:35PM (#18691294)
That's a great hint thanks. I just created a test bucket with a JSON file, this seems much cleaner. At the moment I still use a node server and the database on the same instance.
Re:Show HN: Second Screen News by gnomodromo on Saturday December 15, 2018 @06:24PM (#18690922)
Hey and you can even make the browser window go over two screens, the window will be full of news cards.
Re:Show HN: Second Screen News by gnomodromo on Saturday December 15, 2018 @08:39PM (#18691306)
My favorite topic is the breaking news section with auto-scroll on the second screen.