This project is a simple projectstore on Near blockchain. Users can post their ideas, review ideas and donate to the owner if they want.
You can watch this video for use. loom video
git clone https://github.com/kursaderduhan/Project_Book.git
cd Project_Book
yarnFirst login to your account using near cli.
near loginBuild and deploy the smart contract.
yarn build:release
near dev-deploy ./build/release/singleton.wasmExport the development account to the $CONTRACT
export CONTRACT=<YOUR_DEV_ACCOUNT_HERE>Create a Idea.
near call $CONTRACT addIdea '{"idea": "Car_Rental"}' --accountId <Your_Testnet_Account_Here>List All Ideas.
near view $CONTRACT getIdeasCall Idea With Id.
near view $CONTRACT getIdea '{"id": "<Project_ID_here>"}'Donate To The Owner Of The Idea.
near call $CONTRACT donation '{"idea": "<project_id_here>"}' --accountId <your_testnet_account_here> --amount 2