Introduction


RentOnZilliqa, the Zilliqa Fullstack app, is a full-fledged application on the Zilliqa Blockchain for listing and renting houses. In this guide, we will go through the process of building the full-stack application, from writing the contract to building the frontend application.

Quinence Logo

Built by Quinence - Digital product specialists from Singapore.

Learn more about RentOnZilliqa

The Technology

  • The Scilla Smart Contract.
  • ZilPay for accessing the user wallet and interacting with the Zilliqa Blockchain.
  • Create React App for deploying the frontend of the application.
  • Tailwind CSS for styling the application.

Brief details of the application

A user can create an account as a renter or a host.

If the user is a host, they can create a listing of a home with details of the home (e.g., title, address, amenities) and rental price per night. They can also see the list of all homes as well as the homes they hosted. They can edit the details of a home and delete it from the listing as well.

If the user is a renter, they can rent a home from the list given that it is not unavailable. A home is unavailable if it is rented and the rent duration has not passed yet. Once the user rents the home by paying the amount in ZIL, we mark the home as unavailable. The amount is stored in the contract.

A host can also see the rent accumulated in their account. They can claim the rent anytime they want.

Screenshots

Listings Page

The listings page lists all houses listed with the RentOnZilliqa application. It shows the image of the listing, some basic details, and the price per night.

Listings Page

Individual Listing Page

The page showcasing an individual listing. Shows the title, image, and description of the home as well as the rental price per night.

Individual Listing Page

It also lists the number of bedrooms and bathrooms in the home, the amenities available, and the location of the listing in an embedded map.

Individual Listing Page

Account Modal

Anyone can create an account by first connecting with ZilPay. They provide their name and register as a host or a renter.

Account Modal

Create Listing Modal

A host can create a listing they have created by providing the details of the home and the rental price per night.

Create Listing Modal

Update Listing Modal

A host can also update the details of a home and delete it from the listing.

Update Listing Modal