Skip to content

Learn-NEAR-Club/my-copyright

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

my-copyright

near demo picture store

concept

This contract provides the function of a picture store. Users can upload and purchase pictures. The picture uses hash as the unique identifier. The same user uploads the same hash picture as a modification operation. Different users cannot modify other users' pictures, nor can they buy their own pictures. .
ps: it will be changed to nft later
You can access it online at https://kingbsby.github.io/my-copyright/

Getting Started

1、clone this repo

git clone https://github.com/kingbsby/my-copyright

2、run frontend

cd frontend
yarn install
yarn dev

If all goes well, you'll be able to play by accessing address http://localhost:3000/my-copyright in your browser.

[Option]

If you want to deploy a new dev contract, you need to do the following steps before run frontend:

  cd contract
  rm -rf neardev
  cargo build --target wasm32-unknown-unknown --release
  cp target/wasm32-unknown-unknown/release/my_copyright.wasm res/
  near dev-deploy res/my_copyright.wasm
  get the dev account(e.g. dev-1646378813317-27296479436263), Then modify the variables  `ContractName` in file frontend/src/App.js.
  near call $new-contract-id new --account-id $new-contract-id

About

near demo picture store

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 45.6%
  • Rust 37.5%
  • HTML 9.4%
  • CSS 7.3%
  • Shell 0.2%