A gamified and community driven Web3 learning platform.
We are using TypeScript with Next.js on the front-end, and NestJS on the back-end. Ceramic is our main data store in conjunction with Filecoin & IPFS for file storage.
.
├── packages # Monorepo using yarn workspaces & lerna
│ ├── web # Landing page https://www.dcompass.discovery-dao.xyz/
│ ├── schemas # Ceramic and JSON schemas
│ ├── dapp # Web3 app for the projects, quests, etc
│ ├── hardhat # Contracts compiled & deployed using hardhat.js
│ ├── ui # Our custom Chakra UI theme
│ └── server # A NodeJS server storing user data on a Ceramic instance with a private key and utilizing Thread DB app
└── ... config ...
- Node
- Yarn
- Git
- Accounts and API keys for NFT.storage and WEB3.storage
$ git clone https://github.com/Discovery-Labs/dCompass.git
$ cd dCompass && yarn install
In each package individually, create your .env
files by copying the .example.env
and fill in the empty values.
$ cd packages/[dapp, hardhat and schemas]
$ cp .example.env .env
Go to https://web3.storage and set the value of WEB3STORAGE_TOKEN with your web3.storage API key.
$ cd packages/schemas
$ yarn build
At the root of the project, you can run
$ yarn api:dev
or
$ cd packages/dapp
$ yarn dev
run hardhat locally, get some faucet and 🛰 deploy your contract Set one of your addresses as the DEV_ADDRESS as well as a dev hot wallet private key as the DEPLOYER_PRIVATE_KEY environment variables in packages/hardhat/.env
$ cd packages/hardhat
$ yarn chain
$ yarn faucet <YOUR_DEV_ADDRESS>
Deploying on localhost
$ yarn deploy --network localhost --reset
Deploying on mumbai
$ yarn deploy --network mumbai --reset
Deploying on an other testnet (make sure to edit the hardhat.config.js first)
$ yarn deploy --network mytestnet --reset
Start the 📱 dApp:
At the root of the project, you can run
$ yarn dapp:dev
or
$ cd packages/dapp
$ yarn dev
Start the 📱 landing page:
(Optional, doesn't need anything else to run)
At the root of the project, you can run
$ yarn web:dev
or
$ cd packages/web
$ yarn dev