Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Damn, imagine a view templating language based on sed/awk... I love "silly" projects using counterintuitive technologies.
@allibragi Makes sense, Italian politics is one big meme show. -
bashlord4387y@heyheni I am trying to keep it simple but robust by sticking with the strength of unix tools: processing text and managing files. I'm storing my data in plaintext files, some of which are bash files that can be sourced directly, and some of which are html files (Passwords are stored hashed of course).The posts, for instance, will be stored in the following dir structure:
/posts
--/meta/somepost.meta
--/html/somepost.html
Somepost.meta being a sourceable file containing an associative array with values like the date, a short description and the title. Somepost.html being a html file with the content of the post, which can be placed in a post template by using cat, sed or awk depending on the templating structure I'm going to choose. The whole project is still very young though, so how it is going to work exactly will probably be subject to a lot of change during development :) -
bashlord4387y@Bcd23 there is no repo yet, the code base as of right now is kind of a mess because I've been doing a lot of experimenting. I'll do some cleaning up today and throw it on github today or tomorrow for those who are curious enough to take a look 😊
-
robbt447yBack in the day every web app was written as a cgi-script mostly with perl and form processing. Not that I wrote any but I remember the net before php and coldfusion existed.
-
Comment for repo...
@dfox it would be nice if you could just "subscribe" to threads so you get a notification if someone comments on it -
A colleague used bash on windows to setup an environment with caddy, mariadb, php on windows pc's. But for some parts he let the bash script write powershell and batch and execute that as well.
-
bashlord4387yI created a repo on github, you can find it here https://github.com/redrock9/...
Let me know what you think! :) -
bashlord4387yHey all, so its been a while and I kind of abandoned my CGI project. Deployment was just too much of a hassle, the CGI API isn’t amazing, and it just wasn’t flexible enough. But all is not lost! I decided to create a more flexible, leaner and more elegant way of doing web development in bash. Introducing: bashtron! A web framework for bash that leverages the node js native http stack to host bash scripts! The framework is still very young but at the moment I have routing, parsing GET params, templating and static file serving working. Next on the list is handling POST requests and looking into a database driver that supports prepared statements. Please feel free to take a look at the project on github, I would love some feedback on the README and the code!
https://github.com/redrock9/... -
bashlord4387yOops I think I was a little triggerhappy while copy pasting that link! (It doesn’t work) Here is a valid link https://github.com/redrock9/...
Related Rants
I'm writing a small blogging CMS in bash using CGI. I can't help but giggle every once in a while when I think of the reaction every web developer ever would have if I told them about my project 😂
undefined
cms
bash
cgi