# nest-copyright **Repository Path**: duturel/nest-copyright ## Basic Information - **Project Name**: nest-copyright - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2022-04-28 - **Last Updated**: 2022-04-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ## Description 一个由[Nest](https://github.com/nestjs/nest) 框架提供支持的基于区块链的艺术品数字资产确权流通系统 ## Environment | 依赖 | 版本 | 备注 | | ---- | ---- | ---- | | nodejs | v12.18.0 | 不要低于此版本| | npm | 6.14.4 | 不要低于此版本| | mysql Or mariadb | | 默认使用腾讯云服务器| |ipfs|0.13.0-dev|| ## Installation ```bash # 安装依赖 $ npm install # 安装ganache-cli 测试私有链 用于部署智能合约 $ npm install -g ganache-cli # 启动测试私有链 $ nohup ganache-cli & # 安装truffle 智能合约测试框架 # 在本地测试链 部署智能合约之后 # 注意修改代码{src/eth/eth.service.ts}内智能合约的地址和abi文件的目录 $ npm install -g truffle $ cd contracts $ ./migrate.sh samples # 查看 contracts/logs/Deploy日志 # 找到合约'ERC721'的 contract address # 修改common/app.utils.ts中的ERC721Addr的值 ``` ## Running the app ```bash # development $ npm run start # watch mode $ npm run start:dev # production mode $ npm run start:prod ``` ## Test ```bash # unit tests $ npm run test # e2e tests $ npm run test:e2e # test coverage $ npm run test:cov ``` ## Swagger ``` # 集成了swagger用于测试接口 # 前提是在本地测试链上正确部署了ganache-cli 与 truffle # 并使用truffle 将智能合约部署到ganache-cli http://localhost:3000/api/#/ ```