create-dao
For development
- Run
yarn
- In one terminal
- Run
yarn chain
- In another terminal
- Run
yarn deploy
- Run
yarn dev
What this is supposed to be
npx create-dao
The way Nader sees it:
- A smart contract that deploys an NFT or ERC20 (or have contracts for both)
- A front end that describes how the dao works (info pages, etc...)
- A guide that is built into the README that describes how to token-gate a discord, and the various tradeoffs around decisions when setting up a DAO
- A user interface that allows members to buy or mint tokens
! Important
The project is still early in development and only supports deployment to local chain out of the box. You can of course tweak the code to deploy to Rinkeby, but a low-code solution for that is still in the works.
How to use the template:
-
Run npx create-dao
-
cd
into your project's directory
-
Start a local Hardhat chain: npm run chain
-
Deploy the contracts: npm run deploy
-
Change the greeterAddress
in pages/index.js
to the one your contract was deployed to in #4 above.
-
Start your app: npm run dev
(except the wrapping of create-next-app
and a few modifications, this is mostly taken from https://dev.to/dabit3/the-complete-guide-to-full-stack-ethereum-development-3j13)
How this template will be used on a livenet:
- Run
npx create-dao <dao_name>
- Answer questions according to your preference.
cd <dao_name>
yarn deploy:contract
- TBD..