--- # this is an empty front matter --- {% include header.html %}
It's quick to build your first application with ClearPress. Having installed from CPAN the next step is to identify your initial schema and run it through the application builder: {% highlight perl %} clearpress \ -new Grandkids \ -schema 'family(name) kid(name) kid->family' \ -driver SQLite {% endhighlight %}
This example creates instructions about a SQLite database and two tables within it and identifies a relationship between them. {% highlight sql %} family( id_family integer primary key autoincrement, name varchar ); kid( id_kid integer primary key autoincrement, name varchar, id_family integer ); {% endhighlight %}
So let's create the database and add the tables. {% highlight shell %} cd Grandkids cat data/schema/*.sqlite | sqlite3 GrandKids {% endhighlight %}
and let's start the application: {% highlight shell %}bin/Grandkids{% endhighlight %} by default the server will start on port 8080. If you don't want that add {% highlight shell %}-port=<port-number>{% endhighlight %}
{% include footer.html %}