Example of Web Server with Harbour

Example of Web Server with Harbour

Postby thefull » Fri Jul 01, 2016 1:46 pm

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
Saludos
Rafa Carmona ( rafa.thefullARROBAgmail.com___quitalineas__)
User avatar
thefull
 
Posts: 729
Joined: Fri Oct 07, 2005 7:42 am
Location: Barcelona

Re: Example of Web Server with Harbour

Postby hmpaquito » Fri Jul 01, 2016 4:16 pm

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
hmpaquito
 
Posts: 1482
Joined: Thu Oct 30, 2008 2:37 pm

Re: Example of Web Server with Harbour

Postby cnavarro » Fri Jul 01, 2016 4:47 pm

Rafa, enhorabuena, fantástico
Cristobal Navarro
Hay dos tipos de personas: las que te hacen perder el tiempo y las que te hacen perder la noción del tiempo
El secreto de la felicidad no está en hacer lo que te gusta, sino en que te guste lo que haces
User avatar
cnavarro
 
Posts: 6498
Joined: Wed Feb 15, 2012 8:25 pm
Location: España

Re: Example of Web Server with Harbour

Postby thefull » Mon Jul 04, 2016 1:16 pm

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.
Saludos
Rafa Carmona ( rafa.thefullARROBAgmail.com___quitalineas__)
User avatar
thefull
 
Posts: 729
Joined: Fri Oct 07, 2005 7:42 am
Location: Barcelona


Return to Off Topic / Otros temas

Who is online

Users browsing this forum: No registered users and 5 guests