4 ms·
I already do. https://wordsandbuttons.online/ https://wordsandbuttons.online/ is just a static script-maintainable stand alone site. It has no 3rd-party platfor
by okaleniuk 7y ago
I already do. https://wordsandbuttons.online/ https://wordsandbuttons.online/ is just a static script-maintainable stand alone site. It has no 3rd-party platform but the web hosting. Moreover, I own the domain and don't really rely on anything provider-specific. I can migrate it any day and users wouldn't notice a thing.
I also use GitHub to host sources https://github.com/akalenuk/wordsandbuttons https://github.com/akalenuk/wordsandbuttons but it's just a convenience not a necessity.
The whole thing is just a set of HTML pages with embedded CSS and JS. There are no 3rd-party dependencies or even inner dependencies. No frameworks, no libraries. Each page is self-contained.
At first I thought that writing the whole thing from scratch would be cumbersome, that maybe I need some framework for plots and UI. Now I just enjoy the freedom I have. I can turn any UI idea that comes to mind into some JS code. And even if the code appears redundant because of no dependency policy, each page still comes tiny. With all the JS inside, every one my pages is still under 64KB.
This makes it not only lean and fast but reliable as well. Words And Buttons Online has 5'000-100'000 monthly visitors depending on success of every particular page; never had a problem with Reddit-effect.
In general, I am quite satisfied with this no-platform/no-dependencies decision. Yes, writing HTML manually is a bit tedious and sometimes boring, but the benefits way outweigh the cost.
- discreditable 7y agoSimilar story here. I use pelican to generate my site. I wrote a very lightweight theme for it too (under 10k per page). I can host it anywhere that serves html.
- dublin 7y agoWell, you can hand-craft HTML is you want, but there is a huge variety of tools out there designed to give you full control of building and managing blogs and other websites (list sites courtesy of the Netlify folks): https://www.staticgen.com/ https://www.staticgen.com/ https://headlesscms.org/ https://headlesscms.org/
- megous 7y ago100000 monthly is nothing. That's like 2 visits per minute. Any random vps should handle 10-100s of visits per second (mostly limited by size of your pages and bandwidth if you use static content).
- provolone 7y agoCan be done with dynamic content as well. I'm serving 10-100 per second with postgres, jetty and jstl/jsp on $10/month dedicated servers.
- robbrit 7y agoHow do you host it? Do you own the machine, or use a cloud VM?
- okaleniuk 7y agoI used to have a dedicated server, but I figured that with my needs, cheap shared hosting works just as good and at a fraction of a cost.
- anderspitman 7y agoI took a similar path with my personal site. I did get to the point though where I didn't want to duplicate things like my site banner across all my pages, so I ended up writing a very barebones site generator[0] for compiling handlebars templates. [0] https://github.com/anderspitman/assg https://github.com/anderspitman/assg
- okaleniuk 7y agoThis is sure a way to go too. I prefer scripts to do monkey job for me instead of templates. They take html as input and produce html as output. It's trivial text processing. But this way every text pattern, even that I would have never thought of beforehand, may become a 'template' in the future.