Test application

It’s time to check whether the installation has been successful or not. To do this, we will start a Genropy webserver locally and try to access the start page.

Starting the daemon

First, we need to start in a separate terminal window the process called daemon: it will manage server-side sessions.

So, open a terminal console and start the daemon service as follows:

gnr web daemon

Hint

Although multiple Genropy webservers can be started simultaneously on the same machine on different ports, the daemon process must be started only once and remains alive in the background.

wsgiserve

To test the installation we need to start a webserver by launching the wsgiserve command from another terminal window than the one used for the daemon service.

With this command we start an instance of a Genropy application; the general syntax is:

gnr web wsgiserve instance_name --option

In this case we run the instance checkinstall which is an application that has the sole purpose of publishing a confirmation page:

gnr web wsgiserve checkinstall

From the terminal we will receive confirmation that our application is served locally on port 8080:

serving on 0.0.0.0:8080 view at http://127.0.0.1:8080

Just click on this link to see if everything is working as intended: http://127.0.0.1:8080

Starting with Genropy

Now that you installed Genropy on your machine you can begin to deepen your knowledge of the framework by consulting the documentation published on https://www.genropy.org

In particular, we suggest you to check the following useful resources:

A useful compendium to tackle Genropy learning is the example project sandbox

Section author: Davide Paci