Page 1 of 1

Example of Web Server with Harbour

PostPosted: Fri Jul 01, 2016 1:46 pm
by thefull
Hola , he publicado un nuevo video que muestra el poder de un WebServer usando Harbour.
Hi, I post new video of power of harbour using Web Server.
http://xthefull.blogspot.com.es/2016/07/show-webservices-harbour.html

Re: Example of Web Server with Harbour

PostPosted: Fri Jul 01, 2016 4:16 pm
by hmpaquito
Hola Rafa,

Sencillamente impresionante todo, pero en especial el planning.

¿ Podrias dar algo más de información de cómo está construido todo ?
¿ Generais el codigo hml / js ?

¿ En el blog hablas de una libreria y templates ? ¿ Teneis alguna libreria para vender ?

A ver si nos puedes contar algo más.

Saludos

Re: Example of Web Server with Harbour

PostPosted: Fri Jul 01, 2016 4:47 pm
by cnavarro
Rafa, enhorabuena, fantástico

Re: Example of Web Server with Harbour

PostPosted: Mon Jul 04, 2016 1:16 pm
by thefull
hmpaquito wrote:Hola Rafa,

Sencillamente impresionante todo, pero en especial el planning.

¿ Podrias dar algo más de información de cómo está construido todo ?
¿ Generais el codigo hml / js ?

¿ En el blog hablas de una libreria y templates ? ¿ Teneis alguna libreria para vender ?

A ver si nos puedes contar algo más.

Saludos


Buenas, todo el front-end es bootstrap.
La libreria httpd, contiene un sistema de templates, el cual hace que puedas importar ficheros entre si, y lo hace automatico
de esta manera, puedes hacer pequeños ficheros html.

Por ponerte un ejemplo, para mostrar la informacion del webservices;

info.tpl
Code: Select all  Expand view
{{extend main}}

<div id="wrapper" style="margin-top:30px">
    {{include navigation}}

    <div id="page-wrapper">
         {{include /partials/info}}
    </div>    
    <!-- /#page-wrapper -->

</div>
<!-- /#wrapper -->

 


/partials/info.tpl
Code: Select all  Expand view

<div class="row">
    <div class="col-lg-12">
        <h1 class="page-header">Information Web Server</h1>
    </div>
</div>

<!-- System Core -->
<div class="container-fluid">
    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title">Information System Core</h3>
        </div>
        <div class="panel-body">
            <table class="table table-striped">
                <tbody>
                    <tr>
                        <th width="350" scope="row">OS</th>
                        <td>{{: OS}}</td>
                    </tr>
                    <tr>
                        <th scope="row">Harbour</th>
                        <td>{{: VersionH}}</td>
                    </tr>
                    <tr>
                        <th scope="row">Build Date</th>
                        <td>{{: hb_BuildDate}}</td>
                    </tr>
                    <tr>
                        <th scope="row">Compiler C</th>
                        <td>{{: hb_Compiler}}</td>
                    </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

<!-- Capabilities -->
<div class="container-fluid">
    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title">Capabilities</h3>
        </div>
        <div class="panel-body">
            <table class="table table-striped">
                <tbody>
                    {{: rdd}}
                </tbody>
            </table>
        </div>
    </div>
</div>

<!-- Variables -->
<div class="container-fluid">
    <div class="panel panel-info">
        <div class="panel-heading">
            <h3 class="panel-title">Variables Server</h3>
        </div>
        <div class="panel-body">
            <table class="table table-striped">
                <tbody>
                    {{: serverinfo}}
                </tbody>
            </table>
        </div>
    </div>
</div>
 


De esta manera, separamos la presentación del codigo de Harbour, y nos permite modificar el html , sin afectar al WS.