Complete dApp
With the configuration in place, and our dApp's components, and hooks etc in place, we can run the dApp locally with the development server.
In a terminal you can start the development server with:
npm run devThe dApp might take some time to compile but, when it is finished the dApp should be available to use on https://localhost:3000. You should see something like this:
Whitelist adminstration

Create RealEstateToken projects

Manage RealEstateToken projects

Of course, yours won't be immediately populated with data. You will have no whitelisted investor addresses, and no projects. The account that you used to deploy the contracts with Foundry will be the owner of the Whitelist and RealEstateFactory contracts. If you have that account selected in your MetaMask wallet (its address should be shown on the connection button badge in the top right), then you will be able to approve and revoke account addresses as investors.
Any of your accounts should be able to create a new RealEstateToken project. Just provide the required details and hit Create Project. From there, you can head over to the Manage Projects page and mint tokens for your approved investors. The Manage Projects page will display details of the project and the investors and their holdings.
Last updated