Bunz Survey Platform
A survey platform where sponsors can create a survey and users can respond and earn crypto! Sponsors choose how much they want to fund and the payout to each user submission, and a fee for the platform. They create their survey and pay the smart contract the total amount that they want to give out. Upon completion, a user will receive crypto directly from the smart contract. With this method there should be no disputes. The user can verify on the blockchain if they have submitted a response to a survey.
Other features:
- The sponsor can deactivate the survey at anytime, this will also reimburse the sponsor with the balance left.
- The platform can profit from the fees
- The users and sponsors are safe from any disputes
Technologies used
Front End
- ejs
- Bootstrap
Back End
- Node
- Express
Datastore
- MongoDB
- mlab
- Mongoose
Smart Contract
- Truffle
- Ethersjs
- Web3js
- Deployed on the kovan testnet at: 0x920e2fe6437d9ced4d3ad0caa95df3927a98fc86
Installation from repo
Follow these steps to run the app locally. Note that the database is running on the cloud mlab.
Install the dependencies and devDependencies...
$ cd bunz-survey
$ npm install
Launch Ganache-cli on a new terminal window...
$ cd bunz-survey
$ ganache-cli -m "birth..."
Open a browser, log in to Metamask and select network Localhost on port 8545.
Compile, test and migrate the contracts to the local blockchain...
$ cd bunz-survey
$ truffle compile
$ truffle test
$ truffle migrate
Open a new terminal and start the server.
$ cd bunz-survey
$ npm run start
Finally, point your browser to http://localhost:3000/ and connect to Metamask!
Log in or sign up for Devpost to join the conversation.