-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved READMEs and reorganized some code.
- Loading branch information
Showing
91 changed files
with
306 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,80 +1,108 @@ | ||
# dao-dao-dapp | ||
|
||
Web application for creating and managing multiple DAOs. Live in production at [daodao.zone](https://daodao.zone). | ||
Web application for creating and managing multiple DAOs. Live in production at | ||
[daodao.zone](https://daodao.zone). | ||
|
||
## Development | ||
|
||
See [development](../README.md) for working with Turborepo. | ||
```bash | ||
yarn dev | ||
# or | ||
npm run dev | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the | ||
result. | ||
|
||
You can start editing the page by modifying `pages/index.tsx`. The page | ||
auto-updates as you edit the file. | ||
|
||
## Environments | ||
|
||
You can choose which environment you want to connect to. The default development environment is [Juno Testnet](#testnet). | ||
You can choose which environment you want to connect to. The default development | ||
environment is [Juno Testnet](#testnet). | ||
|
||
### Testnet | ||
|
||
Note: you can get Juno Testnet tokens ($JUNOX) from the #faucet channel in the main [Juno Discord](https://discord.com/invite/QcWPfK4gJ2). Testnet environment variables are in `.env.development` and available by default when running `yarn dev` command. | ||
Note: you can get Juno Testnet tokens ($JUNOX) from the #faucet channel in the | ||
main [Juno Discord](https://discord.com/invite/QcWPfK4gJ2). Testnet environment | ||
variables are in `.env.development` and available by default when running the | ||
`yarn dev` command. | ||
|
||
```bash | ||
yarn dev # starts nextjs dev server | ||
``` | ||
|
||
### Advanced: Other environments | ||
|
||
By default `yarn dev` connects to the testnet. For developing against localhost or mainnet, copy the appropriate `.env` file to `.env.local`. Having a `.env.local` file will override the default `.env.development` file when running `yarn dev`. | ||
|
||
#### Localhost | ||
|
||
This will be using a local development instance in Docker. See the [dao-contracts repo](https://github.com/DA0-DA0/dao-contracts#deploying-in-a-development-environment) for instructions on running a local development environment. | ||
|
||
```bash | ||
cp .env.localhost .env.local | ||
``` | ||
By default `yarn dev` connects to the testnet. For developing against localhost | ||
or mainnet, copy the appropriate `.env` file to `.env.local`. Having a | ||
`.env.local` file will override the default `.env.development` file when running | ||
`yarn dev`. | ||
|
||
#### Mainnet | ||
|
||
NOTE: this will be using the real Juno network and real $JUNO tokens. Use with caution. We highly recommend using the [Juno Testnet .env config](#testnet) for local development. | ||
NOTE: this will be using the real Juno network and real $JUNO tokens. Use with | ||
caution. We highly recommend using the [Juno Testnet .env config](#testnet) for | ||
local development. | ||
|
||
```bash | ||
cp .env.mainnet .env.local | ||
``` | ||
|
||
Then, run the development server: | ||
#### Localhost | ||
|
||
This will be using a local development instance in Docker. See the | ||
[dao-contracts | ||
repo](https://github.com/DA0-DA0/dao-contracts#deploying-in-a-development-environment) | ||
for instructions on running a local development environment. | ||
|
||
```bash | ||
npm run dev | ||
# or | ||
yarn dev | ||
cp .env.localhost .env.local | ||
``` | ||
|
||
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. | ||
|
||
You can start editing the page by modifying `pages/index.tsx`. The page auto-updates as you edit the file. | ||
|
||
Note: If you change `.env.local`, you'll sometimes need to re-add the chain to Keplr. If you [select a different chain](https://highlander-nodes.medium.com/junoswap-how-to-reset-chain-config-3e2470a9c1e1) in Keplr (like Cosmos), you can scroll down and remove the "Wasmd Test" chain, then you can re-add it by connecting your wallet. | ||
|
||
## Requirements | ||
|
||
Please ensure you have the [Keplr wallet extension](https://chrome.google.com/webstore/detail/keplr/dmkamcknogkgcdfhhbddcghachkejeap) installed in your Chrome based browser (Chrome, Brave, etc). | ||
Please ensure you have the [Keplr wallet | ||
extension](https://chrome.google.com/webstore/detail/keplr/dmkamcknogkgcdfhhbddcghachkejeap) | ||
installed in your Chrome-based browser (Chrome, Brave, etc). | ||
|
||
## Learn More | ||
|
||
This project was bootstrapped with [`next-cosmwasm-keplr-starter`](https://github.com/ebaker/next-cosmwasm-keplr-starter). | ||
This project was bootstrapped with | ||
[`next-cosmwasm-keplr-starter`](https://github.com/ebaker/next-cosmwasm-keplr-starter). | ||
|
||
To learn more about Next.js, CosmJS, Keplr, and Tailwind CSS - take a look at the following resources: | ||
To learn more about Next.js, CosmJS, Keplr, and Tailwind CSS, take a look at the | ||
following resources: | ||
|
||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. | ||
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js | ||
features and API. | ||
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. | ||
- [CosmJS Repository](https://github.com/cosmos/cosmjs) -JavaScript library for Cosmos ecosystem. | ||
- [@cosmjs/cosmwasm-stargate Documentation](https://cosmos.github.io/cosmjs/latest/cosmwasm-stargate/modules.html) - CosmJS CosmWasm Stargate module documentation. | ||
- [Keplr Wallet Documentation](https://docs.keplr.app/api/cosmjs.html) - using Keplr wallet with CosmJS. | ||
- [Tailwind CSS Documentation](https://tailwindcss.com/docs) - utility-first CSS framework. | ||
|
||
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! | ||
- [CosmJS Repository](https://github.com/cosmos/cosmjs) -JavaScript library for | ||
Cosmos ecosystem. | ||
- [@cosmjs/cosmwasm-stargate | ||
Documentation](https://cosmos.github.io/cosmjs/latest/cosmwasm-stargate/modules.html) | ||
- CosmJS CosmWasm Stargate module documentation. | ||
- [Keplr Wallet Documentation](https://docs.keplr.app/api/cosmjs.html) - using | ||
Keplr wallet with CosmJS. | ||
- [Tailwind CSS Documentation](https://tailwindcss.com/docs) - utility-first CSS | ||
framework. | ||
|
||
You can check out [the Next.js GitHub | ||
repository](https://github.com/vercel/next.js/) - your feedback and | ||
contributions are welcome! | ||
|
||
## Contributing | ||
|
||
Interested in contributing to DAO DAO? Check out [CONTRIBUTING.md](../CONTRIBUTING.md). | ||
Interested in contributing to DAO DAO? Check out | ||
[CONTRIBUTING.md](../CONTRIBUTING.md). | ||
|
||
## Disclaimer | ||
|
||
DAO DAO TOOLING IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF ANY KIND. No developer or entity involved in creating the DAO DAO UI or smart contracts will be liable for any claims or damages whatsoever associated with your use, inability to use, or your interaction with other users of DAO DAO tooling, including any direct, indirect, incidental, special, exemplary, punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, or anything else of value. | ||
DAO DAO TOOLING IS PROVIDED “AS IS”, AT YOUR OWN RISK, AND WITHOUT WARRANTIES OF | ||
ANY KIND. No developer or entity involved in creating the DAO DAO UI or smart | ||
contracts will be liable for any claims or damages whatsoever associated with | ||
your use, inability to use, or your interaction with other users of DAO DAO | ||
tooling, including any direct, indirect, incidental, special, exemplary, | ||
punitive or consequential damages, or loss of profits, cryptocurrencies, tokens, | ||
or anything else of value. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.