2016年9月8日 星期四

Kickstart for Appweb

最近想有沒有辦法可以幫 VyOS 做一個好看的 DashBoard
後來看到 http://wiki.vyos.net/wiki/Proposed_enhancements
這裡有提到一個 Web GUI的資訊.


HTML 5 /Css 3 light weight GUI -- perhaps it can be used
https://embedthis.com/blog//blog/2014/05/21/esp-10/
and Demo: https://embedthis.com/appweb/demo/

https://embedthis.com/appweb/demo/#/





重點是這個東西 kickstart ..
https://embedthis.com/appweb/kickstart.html

Licensing for Kickstart

Kickstart is licensed as an optional extra for Appweb. For more information or to evaluate Kickstart for your project,
please contact sales@embedthis.com.

這個東西是要錢的.....哈.....不過我還是有將  appweb 裝起來.

但最後我裝了 http://www.monitorix.org/ 它..反正先求有再求好...

https://embedthis.com/appweb/download.html

appweb 安裝準備:

Platform Format Image
Appweb 6 Source Code TAR appweb-6.2.2-src.tgz
To build from source, install packages, or build web sites, you will require:

MakeMe 0.10.3 or later
Pak 0.12.1 or later
Expansive 0.7.0 or later
If you wish to configure the software before building, you will need to download the MakeMe configuration build tool.

appweb 安裝實作:

root@vyos:/usr/local/src/appweb-6.2.2# ./configure
 [Configure] linux-x64-debug
     [Found] compiler: C/C++ Compiler: /usr/bin/gcc
     [Found] esp: Embedthis ESP, the amazingly fast C-Language web framework
     [Found] http: Embedthis Http Library
     [Found] lib: Library Archive Tool: /usr/bin/ar
     [Found] mbedtls: MbedTLS Support: src/mpr-mbedtls
     [Found] mdb: Embedthis MDB Database
     [Found] mpr: Embedthis Multithreaded Portable Runtime
     [Found] osdep: O/S Dependent Layer
     [Found] pcre: PCRE Library
     [Found] ssl: Secure Socket Layer Interface (MbedTLS Support)
     [Found] watchdog: Embedthis Watchdog: build/linux-x64-debug/bin/appman
    [Create] build/linux-x64-debug/platform.me
    [Create] build/linux-x64-debug/inc/me.h
    [Create] start.me
      [Info] Type "me" to build.
root@vyos:/usr/local/src/appweb-6.2.2# me
      [Copy] build/linux-x64-debug/inc/osdep.h
      [Copy] build/linux-x64-debug/inc/embedtls.h
      [Copy] build/linux-x64-debug/inc/mbedtls.h
   [Compile] build/linux-x64-debug/obj/mbedtls.o
   [Archive] build/linux-x64-debug/bin/libmbedtls.a
      [Copy] build/linux-x64-debug/inc/mpr.h
   [Compile] build/linux-x64-debug/obj/mpr-mbedtls.o
   [Archive] build/linux-x64-debug/bin/libmpr-mbedtls.a
   [Compile] build/linux-x64-debug/obj/mprLib.o
      [Link] build/linux-x64-debug/bin/libmpr.so
      [Copy] build/linux-x64-debug/inc/pcre.h
   [Compile] build/linux-x64-debug/obj/pcre.o
      [Link] build/linux-x64-debug/bin/libpcre.so
      [Copy] build/linux-x64-debug/inc/http.h
   [Compile] build/linux-x64-debug/obj/httpLib.o
      [Link] build/linux-x64-debug/bin/libhttp.so
      [Copy] build/linux-x64-debug/inc/mpr-version.h
   [Compile] build/linux-x64-debug/obj/mpr-version.o
   [Archive] build/linux-x64-debug/bin/libmpr-version.a
      [Copy] build/linux-x64-debug/inc/esp.h
   [Compile] build/linux-x64-debug/obj/espLib.o
      [Link] build/linux-x64-debug/bin/libesp.so
      [Copy] build/linux-x64-debug/inc/appweb.h
      [Copy] build/linux-x64-debug/inc/customize.h
   [Compile] build/linux-x64-debug/obj/config.o
   [Compile] build/linux-x64-debug/obj/convenience.o
   [Compile] build/linux-x64-debug/obj/rom.o
   [Compile] build/linux-x64-debug/obj/cgiHandler.o
   [Compile] build/linux-x64-debug/obj/espHandler.o
      [Link] build/linux-x64-debug/bin/libappweb.so
   [Compile] build/linux-x64-debug/obj/appweb.o
      [Link] build/linux-x64-debug/bin/appweb
   [Compile] build/linux-x64-debug/obj/authpass.o
      [Link] build/linux-x64-debug/bin/authpass
   [Compile] build/linux-x64-debug/obj/esp.o
      [Link] build/linux-x64-debug/bin/appweb-esp
      [Copy] extras => build/linux-x64-debug/bin
   [Compile] build/linux-x64-debug/obj/http.o
      [Link] build/linux-x64-debug/bin/http
      [Copy] install-certs => build/linux-x64-debug/bin
   [Compile] build/linux-x64-debug/obj/makerom.o
      [Link] build/linux-x64-debug/bin/makerom
   [Compile] build/linux-x64-debug/obj/watchdog.o
      [Link] build/linux-x64-debug/bin/appman
  [Complete] all
root@vyos:/usr/local/src/appweb-6.2.2# me install
      [Stop] Embedthis Appweb
   [Install] Embedthis Appweb
      [Copy] File sets: core,libs,web,service,esp,utils,test,dev,doc
       [Run] appman install enable start
      [Info] Embedthis Appweb installed at /usr/local/lib/appweb/6.2.2
      [Info] Configuration directory /etc/appweb
      [Info] Documents directory /var/www/appweb
      [Info] Executables directory /usr/local/lib/appweb/6.2.2/bin
      [Info] Use "man appweb" for usage
      [Info] Use appman [start|stop|restart] to control
      [Info] Browse to http://localhost
  [Complete] install
root@vyos:/usr/local/src/appweb-6.2.2#

沒有留言:

張貼留言