Skip to content

Appliscale/dao1-hackahton

Repository files navigation

Moralis Poll [web3-social-network-boilerplate]

This Project is a fork of Ethereum Boilerplate and demostrates how you can build your own Web3 Ethereum Social Network. This project of course work on any EVM-compatible blockchain such as Polygon, Avalanche, Binance Smart Chain and other such chains.

social

⭐️ Star us

If this boilerplate helps you build Ethereum dapps faster - please star this project, every star makes us very happy!

🤝 How to get help

If you have any questions or need help running this project please don't hesitate to ask in our forum. We are monitoring it 24/7 and are here to help you get up to speed.

🚀 Quick Start

📄 Clone or fork web3-social-network-boilerplate:

git clone https://github.com/ethereum-boilerplate/web3-social-network-boilerplate

💿 Install all dependencies:

cd web3-social-network-boilerplate
yarn install

✏ Rename .env.example to .env in the main folder and provide your appId and serverUrl from Moralis (How to start Moralis Server) Example:

REACT_APP_MORALIS_APPLICATION_ID = xxxxxxxxxxxx
REACT_APP_MORALIS_SERVER_URL = https://xxxxxx.grandmoralis.com:2053/server

📄 Set your Contract

- Deploy smart contracts from this folder https://github.com/ethereum-boilerplate/web3-social-network-boilerplate/tree/main/smart%20contracts
- Add some categories through the addCategory function.
- Set listeners in the Moralis Server to sync all your contracts events.
- Add your contract address in MoralisDappProvider.js contract address as the default value of the state

🚴‍♂️ Run your App:

yarn start