Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Thank you everyone for your feedback, it's very motivating to see that so many people find this project interesting. I might turn this into a Show HN soon, once the site fills up with some interesting predictions.

On the technical side, the logs show over 6600 unique visitors in the last 12 hours, with over 1100 of them (and 18k requests) during the busiest hour. I know that's not too impressive, but it's still good to see the basic VPS running the server didn't break a sweat (load average peaked at around 0.1).

In the mean time feel free to post content you're interested in, and also contact me (e-mail is in my profile) if you have any feedback. Thanks again!



I'm interested in building a site in the same way (Django + Intercooler + VanillaJS). Do you have any recommended projects/readings to look into? Or do you have any thoughts on other alternatives (StimulusJS + Turbolinks / Unpoly)?


Hey, I think Django has some of the best documentation of any project I know (both reference and tutorials/guides):

https://docs.djangoproject.com/en/3.0/

There is some material on using Django with intercooler.js:

https://www.reddit.com/r/django/comments/5nj242/psa_intercoo...

https://engineering.instawork.com/iterating-with-simplicity-...

but in the end I did something slightly different: for actions I just have in my views:

  if 'X-Ic-Request' not in request.headers:
    # render full page (which includes the fragment template)
  else:
    # render fragment template (which Intercooler will interpolate into the page)
That way, should I get to that page by any other way (user has disabled JS, I have a link in my page because I want a full page reload), it still works fine. Hope this helps.

I had a look at Unpoly, that looks very interesting and could simplify the backend code even more.


Yeah, Django's documentation is top notch, but I haven't seen a lot about mixing Django + Intercooler. That's a cool approach to make sure the actions are always reachable. Will read these, and maybe reach out to you sometime to find out how you like Unpoly! Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: