To generate an application, follow the steps below.
Create a Curry program containing a constant of type
Database.ERD.ERD (the module
Database.ERD is part of the package
cdbi) which describes your entity-relationship model (see the file “examples/BlogERD.curry” as an example).
spiceup and supply the name of the Curry ERD program, e.g.,
This generates the complete source code of the initial application as a Curry package (see the generated file README.txt for some explanations).
You can also provide a file name for the SQLite3 database in which all data is stored, e.g.,
spiceup --db BlogData.db .../BlogERD.curry
If the parameter “–db …” is not provided, then the name of database file is “
sqliteDBFile in the generated Curry program
Change into the generated directory containing all sources as a Curry package, e.g., by
Define in the Makefile the variable WEBSERVERDIR (and possibly other variables, like SYSTEM or CURRYOPTIONS).
Install all required packages by
Compile the generated programs by
make deploy to deploy the web application.
After the successful compilation, the application is executable in a web browser by loading
<URL of web dir>/spicey.cgi.
Note that the database is generated with the
cdbi package. Hence, one can also use embedded SQL statements when further developing the Curry code. The syntax and use of such embedded SQL statements is described in the Curry preprocessor.