3 ms·
It's simple. Just take the hydraulic react redux emulator, and attach it to the transdimensional photon nodejs emitter. Bam! New website. But seriously, nerds
by VoodooJuJu 3y ago
It's simple. Just take the hydraulic react redux emulator, and attach it to the transdimensional photon nodejs emitter. Bam! New website.
But seriously, nerds these days don't make it easy. Pretty sure they revel in the complexity. The nicest simple stack I've found is this:
1. FastAPI backend - this is almost really good for getting a simple backend running. Some downsides:
- some astonishments, bugs: [1] [2]
- it's coupled with Pydantic, which can get confusing because you end up with basically two sets of models if you use an ORM: your ORM "actual models" and then your Pydantic validation models. Just got a little confusing. I'd rather avoid Pydantic and ORM's completely.
- uvicorn? gunicorn? unicorn? WSGI? who?
- it's python, so you'll have to deal with cringe and blue-pilled dependency management, among other things
2. Vanilla HTML, CSS, and JS - nice thing about FastAPI is you can be flexible with how you implement the frontend. I've used it to make everything from simple SPA's using vanilla web components to traditional templated SSR sites, and mixes therein.
[1] https://github.com/tiangolo/fastapi/issues/2872 https://github.com/tiangolo/fastapi/issues/2872
[2] https://github.com/tiangolo/fastapi/discussions/3970 https://github.com/tiangolo/fastapi/discussions/3970