First of all, let's copy the preceding code into a models.py file. The equivalent file in the Packt GitHub at https://github.com/PacktPublishing/Hands-On-Graph-Analytics-with-Neo4j/blob/master/ch11/Flask-app/models.py contains a few extra lines. They contain some instructions we can use to create example data that we will play with in the following section. To execute it, just run the following command from the root directory:
python models.py
The created nodes and relationships are illustrated in the following diagram:
We have one repository called hogan, owned by a user whose name is me. The user me also contributed to this repository. Two more users, you and trinity, also contributed to the same repository.
Let's start writing our first web page.