To try our code by a local Django server:
git clone https://github.com/TerryC78/Bookly.git
pip install https://github.com/atereshkin/django-web3-auth/archive/master.zip
python web/publish/manage.py runserverWe deployed through Quarkchain testnet, and the smart contract works. Our FE uses Django and we have a basic version of Django web server that talks with BE smart contract.
We used django-web3-auth library which can be installed here:
pip install https://github.com/atereshkin/django-web3-auth/archive/master.zipEach identity is a contract in our first try. But after checking with Quarkchain experts, we were suggested to merge identities into one contract, which is below.
There will be two distinction of users:
- Earn tokens from sales proceeds (90% of sales price,10% goes to XX?)
- Spend tokens by promoting their content
- Purchase content with tokens
- Earn tokens with book reviews
- Earn tokens by ratings other book reviews
A utility token will be created and applied in the following use cases:
- Tokens will be used to pay to purchase content on platform
- Bonus Token Payout/Rewards will be implemented to allow “tipping” by users
- Bonus Token Payout/Rewards will be implemented to promote certain content?
- Tokens will be used to payout on ratings/reviews for content on platform
- Bonus Tokens Rewards will be implemented to reward quality ratings/review on platform
- Bonus Tokens Rewards will be paid out to users who build merit and credibility