|
|
(15 intermediate revisions by 3 users not shown) |
Line 1: |
Line 1: |
| [[Category:Xebra]] | | [[Category:Xebra]] |
| + | [[Xebra About|About]] | [[Xebra Installation|Installation]] | [[Xebra Documentation|Documentation]] | [[Xebra Tutorial|Tutorials]] | [[Xebra FAQ|Frequently Asked Questions]] |
| | | |
− | =Create a webapp=
| |
− | # Setup an initial Eiffel project for your webapp. For that matter you can use this [https://svn.origo.ethz.ch/eiffelstudio/trunk/Src/framework/web/xebra/tools/scripts/create_website.sh script] which creates all neccesary files. Make sure to assign a free port to your webapp (see also [[Xebra Webapp Config File]]). The webapp has to be created in the same folder that is specified in the servers config file at webapps_root. See [[Xebra Server Config File]] for more information.
| |
− | # Run the server and browse to http://localhost:55000/yourwebapp. The server will translate and compile your webapp. Once compiled, you should see a page displaying "Yourwebapp works!".
| |
− | # Create xeb files for your webapp. See [[Xebra Xeb-Files]] for a documentation about xeb files. Note that you have to let the server retranslate your webapp everytime you change xeb-files or add new xeb-files. This can be done by just pressing F5 in the browser. The server automatically detects that the webapp has to be retranslated if it is set to Development Mode (see [[Xebra Server Administration]] for more info).
| |
− | # Create the eiffel classes.
| |
| | | |
− | =Run Xebra Server= | + | =Server= |
| + | * Run Xebra Server: [[Xebra Server Administration]] |
| | | |
− | # Note that you should have compiled the translator before you run the server.
| + | =Webapp= |
− | # If you have not done so, open the file $XEBRA_DEV/eiffel_projects/xebra_server/config.ini and adapt translator, compiler, and webapps_root to your configuration (see [[Xebra Server Config File]]).
| + | * Create a webapp: [[Xebra Create Webapps|Create Webapps]] |
− | # Launch estudio and open the project $XEBRA_DEV/eiffel_projects/xebra_server/xebra_server-voidunsafe.ecf
| + | * Debug a webapp: [[Xebra Debug Webapp|Debug Webapp]] |
− | # Go to the Exceptions Handling dialog and disable DEVELOPER_EXCEPTION (this is due to a bug in the NET library that has not been fixed yet).
| + | * Write a xeb file: [[Xebra Write Xeb File|Write Xeb File]] |
− | # Open the Execution Parameters dialog and set "config.ini -d 10" as argument (see [[Xebra Server Administraton]] for more info about run arguments).
| + | * Add XML-RPC support ((xml_rpc is currently disabled)): [[Xebra Create XML-RPC Webapp]] |
− | # Compile and run
| + | |
− | # Browse to http://localhost:55000/helloworld/. The server now translates, generates, compiles and finally runns the helloworld application.
| + | =Extend Xebra= |
| + | *Create your own tag libraries: [[Xebra Create Tag Library|Create custom tag library]] |