3 ms·
Me and other contributors are writing and maintaining "Web app from scratch" scripts for popular frameworks here: https://github.com/no-gravity/web_app_from_sc
by mg 4y ago
Me and other contributors are writing and maintaining "Web app from scratch" scripts for popular frameworks here:
https://github.com/no-gravity/web_app_from_scratch https://github.com/no-gravity/web_app_from_scratch
The idea is to have a self-explanatory shell script for each framework, which turns a fresh Debian installation into a running web application with routing, templates and user accounts.
So far, we have Django, Flask, Laravel and Symfony. In various stages.
If you look into the scripts, you see that they are pretty much tutorials in code form. Reading one of them shouldn't take more than 10 minutes. After that, you know exactly what your web app does.
- sodimel 4y agoWhy using python3-django on debian instead of a venv and the last lts of django from pypi on your script[0] ? [0]: https://github.com/no-gravity/web_app_from_scratch/blob/main/django.sh#L32 https://github.com/no-gravity/web_app_from_scratch/blob/main...
- mg 4y agoHow would you replace the line apt install -y python3-django with "a venv and the last lts of django from pypi"? I would be curious to see which lines you replace this with and if the script runs the same afterwards. Personally, I run an application either in a container or in a VM. So I never had the need for virtual environments. Does the latest Django version give you something you are looking for that is not in Debian's version? A benefit of doing it the Debian way is that it is easy (one line of code) and no extra system has to be put in place for updates. As Django is updated along with your OS updates.
- sodimel 4y agoLike this: python3 -m venv .venv . .venv/bin/activate python3 -m pip install django I think python packages should be installed through pypi, instead of being installed using whatever package manager your system use.
- encryptluks2 4y agoTo me that is like way more convoluted than just using containers.
- mg 4y agoCan you elaborate on how "using containers" gives you a running Django instance? Do you mean using a premade Docker image that comes with Django installed and configured?
- encryptluks2 4y agoYou could have the environment ready and be ran on any container distro.. all they need to do is mount the files and go.