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:
- NEAR CLI RS, to deploy and interact with the contract.
- cargo-near, to easily create testnet accounts.
From the root directory, run:
cd community
cargo near build
cd ../community-factory
./build.sh
cd ..
./build.sh
From the root directory, run:
cargo test
Using NEAR CLI RS, run the following command. Be sure to set your own account id and corresponding network.
near contract deploy {{account.near}} use-file ./target/wasm32-unknown-unknown/release/devgovgigs.wasm without-init-call network-config {{env}}
near contract deploy {{community.account.near}} use-file ./target/wasm32-unknown-unknown/release/devhub_community_factory.wasm without-init-call network-config {{env}}