Coder Social home page Coder Social logo

please post some example about balls HOT 6 OPEN

seletz avatar seletz commented on August 12, 2024 5
please post some example

from balls.

Comments (6)

gustavomdsantos avatar gustavomdsantos commented on August 12, 2024 4

I liked very much when I knew that there is a project for a Web application framework like Ruby on Rails and Groovy on Grails: Bash on Balls! As @seletz said, reading the source code is interesting, Balls apparently creates a web server and renders HTML pages with server-side scripting. @jneen You really made a nice work!

I'm a Linux user that learned Bash language some years ago. I've made some relatively complex desktop applications using Bash and YAD/zenity for GUI. Although Balls is a really useful and inovative software, its GitHub repository and source code doesn't encourage programmers to use it.

  • The README file doesn't have good pratices for writing READMEs (some of them here and here), it's only a simple and informal description of the project;
  • The source code of balls doesn't have any comments (except code snippets), Bash language itself doesn't have good readability.

In short, we can not know how to use Balls, to create Web applications properly by the way it is, and I reinforce the request of @seletz to post some example of complete usage of Balls and all its features.

I can contribute to this nice project, but as I said, I don't know how to use it. I have some ideas of implementing a Bash framework with MVC architectural pattern with similar usage in the command line like Grails:

balls create-app helloworld
balls create-controller hello (would create a file called HelloController.sh)
balls run-app or balls run-app --server-port=8090 (to run the application in a web server)

from balls.

jneen avatar jneen commented on August 12, 2024

We're working on some examples and tutorials, but for fun you can try out esh. For example:

# test.html.esh
<html>
  <head>
    <title><%= "$title" %></title>
  </head>
  <body>
    <ul>
      <%- for i in {1..10}; do -%>
        <li>Here's number <%= "$i" %>!
      <%- done -%>
    </ul>
  </body>
</html>

And then run

% ./bin/esh test.html.esh > test.html.esh.o # this will be slowish
% title=FOOBAR bash test.html.esh.o # this will be lightning fast

Voila!

from balls.

Voronoff avatar Voronoff commented on August 12, 2024

I'm going to try to have an example blog written in BoB by the end of the weekend. We didn't actually intend to post this before having more work into this project, but reacted to the OOP bash post on Hacker News.

from balls.

lest avatar lest commented on August 12, 2024

+1

from balls.

mfalesni avatar mfalesni commented on August 12, 2024

@Voronoff still nothing? :)

from balls.

davidmyersdev avatar davidmyersdev commented on August 12, 2024

+1

from balls.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.