73

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 😂

Comments
  • 7
    all hail the bashlord!

    how does it work? 🙂
  • 4
    The man in the meme is an italian politician...
  • 7
    Try adding Perl into the soup there.
    It'll be beautiful.
  • 5
    Ewwwwwww
  • 8
    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.
  • 2
    Repo on GitHub?
  • 0
    @bittersweet sed-based pure functions. That would be... nervewreckingly fun!
  • 5
    @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 :)
  • 4
    @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 😊
  • 1
    Put that on github please hahaha
  • 1
    Leaving a comment so I can check back for repo...
  • 0
    For repo
  • 6
    DevRant needs a remindme bot
  • 0
    I'm intrigued by this...
  • 1
    You're using what? You don't know Java?
  • 2
  • 0
    Comment for repo
  • 2
    @epse oehh, that's a nice idea. I might make that (in assembly of course)
  • 2
    someone should do it in brainfuck
  • 1
    Back 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.
  • 1
    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
  • 0
    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.
  • 1
    You are using what?!!! Don't you know python?
  • 1
    *inserts PHP and runs away in fear*
  • 3
    I created a repo on github, you can find it here https://github.com/redrock9/...

    Let me know what you think! :)
  • 4
    Hey 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/...
  • 2
    Oops 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/...
Add Comment