Skip to content

This is a Nextjs Dapp that consumes a contract. Rewards you with tokens for participating in a survey. You can connect through your Metamask wallet and try it easily!

Notifications You must be signed in to change notification settings

FerLeiva/rather-labs

Repository files navigation

Rather Labs Survey

This is a Nextjs Dapp that consumes a Solidity contract. Rewards you with tokens for participating in a survey. You can connect through your Metamask wallet and try it easily!. It consists of a platform where customers can take surveys and earn $Quiz tokens as rewards. The app uses Ant Design for styling, react-moralis for contract connection, and Nextjs as the main framework.

The application

It is running within the Vercel platform and can be visited via:

https://rather-labs-alpha.vercel.app/

A client can access through their Metamask wallet and take the survey of the day through a simple button. Once it has started, they will have a limited number of seconds to answer each question. Whether or not they choose an option, at the end of the the timer it will automatically go to the next question, taking the last selected or the default answer as the answer. Once all the questions are finished, an interface will be displayed where you can view all the questions in order with their respective answers. When you click the finish button, an alert will be displayed and the page will automatically give you an amount of tokens given by the contract while returning you to the main page.

The application uses moralis for blockchain connection and obtains the necessary information from your metamask wallet to be able to carry out the different internal transactions of the contract. Token balance information is also obtained from the contract. The surveys are consumed through JSON files, and can be easily created and dynamically editable.

Multimedia

You can watch a video of the application process through the following link:

https://www.loom.com/share/901c94f3f9d149e7a58c890fdddfcaef

Here are some snapshots of the app:

Desktop:

image image image

Mobile:

image image image image

Getting Started Locally

This is a Next.js project bootstrapped with create-next-app.

First, run the development server:

npm run dev
# or
yarn dev

Open http://localhost:3000 with your browser to see the result.

Specifications and dependencies:

Dev dependencies:

Rather Labs Surveys - Created by @effeleiva

About

This is a Nextjs Dapp that consumes a contract. Rewards you with tokens for participating in a survey. You can connect through your Metamask wallet and try it easily!

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages