The smart contract responsible for managing the communities, posts, and permissions made available via the NEAR DevHub frontend. The repository for the frontend widgets can be found here.
Before starting, make sure you have the following installed:
- cargo-near, to easily create testnet accounts, build and deploy contracts.
- NEAR CLI RS, to interact with the contract.
From the root directory, run:
cd discussions
cargo near build
cd ../community
cargo near build
cd ../community-factory
cargo near build
cd ..
cargo near build
From the root directory, run:
cargo test
Using cargo-near, run the following command. Be sure to set your own account id and corresponding network.
cargo near deploy {{account.near}}
cd community-factory
cargo near deploy {{community.account.near}}