Introduction
The CYWare JS API provides a convenient way to create web applications with the ease of javascript coding, coupled with the speed of a natively compiled engine.
The engine itself consists of only three files: a common library file, a settings file and a binary CGI file. A web server and database are also required.
JS API Files
| Filename | Location | Description |
|---|---|---|
| libcyware (.so, .dylib, .dll) | /usr/local/lib | CYWare library containing common functions for the JS engine |
| cyweb.cgi | Web server CGI directory | The CGI binary that reads script files and produces HTML output |
| cyweb.cgi.ini | /usr/local/cyware/ini | The settings file in Windows INI format. |
INI file Entries
The settings file has the following keys:
| Key | Description |
|---|---|
| PORT | The web server port. |
| TIMEOUT | The web session timeout value in seconds. |
| TITLE | The web page title. |
| VERSION | The CYWare JS API version number. |
| EXTLIB | The CYWare library extension: .so for Linux, .dylib for OsX, .dll for Windows |
| ... | TODO: Not yet done... |